Philippe Marschall
131d2c2051
Remove String#toCharArray from ScriptUtils
...
ScriptUtils contains two calls to String#toCharArray for the sole
purpose to iterating over all chars in a String. Not only is this
unnecessary and can be replaced with String#charAt it also causes
additional allocator and heap pressure because String#toCharArray
rather than returning the backing array (which is gone in Java 9)
creates a copy.
This commit contains the following changes:
- remove String#toCharArray from ScriptUtils and replace with
String#charAt
Issue: SPR-15075
9 years ago
Brian Clozel
7f05c2a18c
Fix default content-type for ResourceRegion HTTP responses
...
Prior to this commit, the `ResourceRegionHttpMessageConverter` would
rely on the default implementation of `getDefaultContentType` to guess
the default Content-Type of the resource region to be written to the
HTTP response. That implementation fetches the first media type
provided in the HTTP request "Accept" header.
This behavior is not correct when converting resources and this commits
aligns this converter with the `ResourceHttpMessageConverter` which uses
JAF to guess the correct Content-Type of the given resource, or just
returns "application/octet-stream" as a default value.
Issue: SPR-15041
9 years ago
Juergen Hoeller
8fc65ab0a5
Clarified setAutowireCandidate semantics (plus attribute reordering in BeanDefinition)
...
Issue: SPR-15072
(cherry picked from commit e8a082f )
9 years ago
Juergen Hoeller
b6108e3b2d
Upgrade to ASM 5.2
...
Issue: SPR-15071
(cherry picked from commit ccabff6 )
9 years ago
Juergen Hoeller
26a4aef417
Polishing
...
(cherry picked from commit fc629bb )
9 years ago
Juergen Hoeller
050f2c746d
Track bean dependencies for calls between @Bean methods within @Configuration classes
...
Issue: SPR-15069
(cherry picked from commit a5c6658 )
9 years ago
Juergen Hoeller
fd21e0e69a
@Scheduled reliably applies after other post-processors and shuts down before TaskScheduler
...
Issue: SPR-14692
Issue: SPR-15067
(cherry picked from commit edc62be )
9 years ago
Juergen Hoeller
794580ffcd
TypeDescriptor efficiently matches equal annotations as well
...
Issue: SPR-15060
(cherry picked from commit e38c020 )
9 years ago
Juergen Hoeller
d44bc27c9a
Avoid FactoryBean initialization on isSingleton check for decorated bean definition
...
Issue: SPR-14892
Issue: SPR-15042
(cherry picked from commit 209e7a7 )
9 years ago
Juergen Hoeller
243e21a3ea
Backport streamlined ClassPathBeanDefinitionScanner setup
...
Issue: SPR-15061
9 years ago
Juergen Hoeller
20aaa8841c
PATCH does not work with the standard JDK HTTP library
...
Issue: SPR-15052
(cherry picked from commit 0480981 )
9 years ago
Juergen Hoeller
d77ab67c56
AbstractNestablePropertyAccessor's setPropertyValue refactored into several delegate methods
...
Issue: SPR-15053
(cherry picked from commit 64d6561 )
9 years ago
Sebastien Deleuze
dd2b6a0fc5
Avoid NPE in AutoProxyRegistrar when no attribute found
...
Issue: SPR-15055
9 years ago
Juergen Hoeller
f949461297
Polishing
...
(cherry picked from commit a8741dd )
9 years ago
Juergen Hoeller
9a39a25bb5
Detect generic type match behind interface-based proxy as well
...
Issue: SPR-14097
(cherry picked from commit f805427 )
9 years ago
Juergen Hoeller
4b018407c1
Expose reflection metadata with ASM-driven method order
...
Issue: SPR-14505
(cherry picked from commit 0208198 )
9 years ago
Juergen Hoeller
28e114b569
Clarify programmatic contract (no annotation-driven injection)
...
Issue: SPR-8704
(cherry picked from commit fd41f63 )
9 years ago
Juergen Hoeller
99226e0fa6
Polishing
9 years ago
Juergen Hoeller
4a84ee07be
ConfigurationClassParser enforces @Bean declaration order through ASM metadata
...
Issue: SPR-14505
(cherry picked from commit 3295a4e )
9 years ago
Juergen Hoeller
505480cf63
LinkedCaseInsensitiveMap delegates to LinkedHashMap instead of extending it
...
Issue: SPR-15026
(cherry picked from commit 8147c11 )
9 years ago
Juergen Hoeller
fa2bfdd326
Remove unused Log object from MessageHeaderAccessor
...
Issue: SPR-15045
(cherry picked from commit 5c48daa )
9 years ago
Juergen Hoeller
afe022853c
Reintroduced initDefaultStrategies callback for compatibility with old MessageListenerAdapter subclasses
...
Issue: SPR-15043
9 years ago
Juergen Hoeller
41b834f76e
Consistent ClassLoader propagation and ConcurrentHashMap setup for AspectJ pointcuts
...
Issue: SPR-15040
(cherry picked from commit d64d9ab )
9 years ago
Spring Buildmaster
a88436c806
Next Development Version
9 years ago
Brian Clozel
e2d6e709c3
Normalize resource URL in ResourceServlet
...
Issue: SPR-14946
9 years ago
Juergen Hoeller
bd7fee5a77
Upgrade to Hibernate ORM 5.2.6
9 years ago
Juergen Hoeller
709d4ba6e7
Avoid explicit DecoratedObjectFactory setup in JettyRequestUpgradeStrategy
...
Issue: SPR-14940
9 years ago
Juergen Hoeller
8d55c7d60a
Backported DataBinder configuration tests
...
Issue: SPR-15009
9 years ago
Juergen Hoeller
9cb4de8b5e
Polishing
9 years ago
Juergen Hoeller
8662c61a17
Polishing
...
(cherry picked from commit 154ef8b )
9 years ago
Juergen Hoeller
935671ae32
Defensively catch any exception from match attempts (for compatibility with AspectJ 1.8.10)
...
Issue: SPR-15019
(cherry picked from commit 97ea22c )
9 years ago
Juergen Hoeller
a5ce965d22
ConfigurationClassPostProcessor programmatically registers unified ImportAwareBeanPostProcessor
...
Issue: SPR-14931
(cherry picked from commit f6b2a21 )
9 years ago
Juergen Hoeller
1e58c80fe7
MBeanExporter silently ignores null beans
...
Issue: SPR-15031
(cherry picked from commit 9c55d22 )
9 years ago
Juergen Hoeller
a92ae4ba30
Fixed backport gaps
9 years ago
Juergen Hoeller
b5f2e56e38
Polishing
9 years ago
Juergen Hoeller
594f4d56b8
RestTemplate provides patchForObject operations
...
Issue: SPR-14857
9 years ago
Juergen Hoeller
2d83ca61e7
JdbcTemplate consistently delegates to getColumnMapRowMapper
...
Issue: SPR-15018
9 years ago
Juergen Hoeller
307e37a69f
Flexible setMessageCodesResolver and deprecated setExtractOldValueForEditor at DataBinder level
...
Issue: SPR-15009
9 years ago
Juergen Hoeller
8310eb3b1f
Latest dependency updates (OkHttp 3.5, Jackson 2.8.5, Jetty 9.3.14, Tomcat 8.5.9)
9 years ago
Juergen Hoeller
b9c4f1fa95
ResolvableType-based matching respects generic factory method return type
...
Includes consistent use of ResolvableType.resolve() wherever applicable.
Issue: SPR-15011
(cherry picked from commit 4c005e6 )
9 years ago
Juergen Hoeller
faab4f9e28
Consistent DeferredResultHandler invocation outside of result lock
...
Issue: SPR-14978
(cherry picked from commit 37c734e )
9 years ago
Juergen Hoeller
271b0abc45
LocaleContextHolder provides support for framework-level default settings
...
Issue: SPR-15017
(cherry picked from commit 23f0418 )
9 years ago
Juergen Hoeller
f0c3d50408
Defensively catch IllegalStateException from match attempts (for compatibility with AspectJ 1.8.10)
...
Issue: SPR-15019
(cherry picked from commit 3370f41 )
9 years ago
Juergen Hoeller
f0fdff1f07
OkHttpClientHttpRequestFactory allows POST request without body
...
Issue: SPR-15015
(cherry picked from commit 2954385 )
9 years ago
Juergen Hoeller
d15df3489e
Avoid proxy replacement for generic return type signatures
...
Issue: SPR-15010
(cherry picked from commit 6d1cae2 )
9 years ago
Juergen Hoeller
f3cc4ab09d
@RequestBody supports java.util.Optional
...
Issue: SPR-15007
(cherry picked from commit eeb7ae5 )
9 years ago
Juergen Hoeller
442d8a68a6
TypeDescriptor properly narrows ResolvableType for non-typed collection elements
...
Issue: SPR-14971
(cherry picked from commit aef1460 )
9 years ago
Juergen Hoeller
934fffec68
AutowiredAnnotationBeanPostProcessor tolerates annotated no-arg constructors
...
Issue: SPR-15005
(cherry picked from commit 8b5ee4e )
9 years ago
Juergen Hoeller
8190e7838f
SQLErrorCodesFactory provides unregisterDatabase method
...
This commit also migrates from a WeakHashMap to a ConcurrentReferenceHashMap, allowing for concurrent access to existing cache entries.
Issue: SPR-15006
(cherry picked from commit b825528 )
9 years ago
Juergen Hoeller
4571975414
Collection injection may refer back to factory methods on same bean again
...
Issue: SPR-14996
(cherry picked from commit 547b963 )
9 years ago