Juergen Hoeller
6deccf123d
Reference documentation for Groovy bean definition DSL
...
Issue: SPR-15153
(cherry picked from commit 2047f8d
)
2017-01-17 15:35:24 +01:00
Juergen Hoeller
391ebc8eda
Correct reference to XJC classpath
...
(cherry picked from commit 54da4a8
)
2017-01-17 15:35:03 +01:00
Brian Clozel
28c7f65a25
Add SNI support in Netty4ClientHttpRequestFactory
...
This commit changes the `Bootstrap` to create a SSL Handler with
advisory peer information; this enables support for SNI.
Issue: SPR-15101
(cherry picked from commit 0c99346
)
2017-01-17 11:32:10 +01:00
Juergen Hoeller
caebe72083
Proper resolution of Optional.empty() for header arguments
...
Issue: SPR-15151
(cherry picked from commit e9db4d6
)
2017-01-17 11:04:43 +01:00
Juergen Hoeller
f79baec5ff
Polishing
...
(cherry picked from commit 46fc7fb
)
2017-01-16 23:14:12 +01:00
Vedran Pavić
d1c0ea7d74
Set MockSessionCookieConfig#maxAge default to -1
...
Issue: SPR-15142
(cherry picked from 83beb9d57d
)
2017-01-16 23:07:26 +01:00
Juergen Hoeller
53e2d7d160
Upgrade to Objenesis 2.5
...
(plus Groovy 2.4.8, Jackson 2.8.6, Netty 4.1.7)
Issue: SPR-15146
2017-01-16 22:44:07 +01:00
Juergen Hoeller
8c62a2f11a
Polishing
...
(cherry picked from commit 95330d0
)
2017-01-16 22:43:54 +01:00
Juergen Hoeller
8656e30550
Revised InvocableHandlerMethod exception messages (controller vs endpoint vs handler)
...
Introduces dedicated MethodArgumentResolutionException for spring-messaging invocations.
Issue: SPR-15139
(cherry picked from commit 047786a
)
2017-01-16 22:43:48 +01:00
Juergen Hoeller
0655d73f8e
SimpleApplicationEventMulticaster defensively handles ClassCastException without message
...
Issue: SPR-15145
(cherry picked from commit 153fd82
)
2017-01-16 22:43:35 +01:00
Juergen Hoeller
24ebd15f9c
Introspect FactoryBean class declaration if no early instantiation possible
...
Issue: SPR-15125
(cherry picked from commit 32fc855
)
2017-01-16 22:43:18 +01:00
Juergen Hoeller
cce84711c6
MockHttpServletRequestBuilder reliably detects form body content type again
...
Issue: SPR-15116
(cherry picked from commit e88e8f1
)
2017-01-16 22:43:01 +01:00
Juergen Hoeller
7f127300f9
Polishing
2017-01-12 23:43:27 +01:00
Juergen Hoeller
1521094c5b
MimeTypeUtils constants cleanup: deprecated web media types
...
Issue: SPR-15137
2017-01-12 23:43:00 +01:00
Juergen Hoeller
0b8134049c
Upgrade to Joda-Time 2.9.7
2017-01-12 22:55:23 +01:00
Juergen Hoeller
70a980db58
Polishing
2017-01-12 22:54:23 +01:00
Juergen Hoeller
8b960099f1
Introduce media types for application/rss+xml
...
Issue: SPR-15109
2017-01-12 22:53:38 +01:00
Juergen Hoeller
cc53d597c0
MySQLMaxValueIncrementer supports "useNewConnection" mode for INNODB tables
...
Issue: SPR-15107
2017-01-12 22:53:10 +01:00
Juergen Hoeller
5982f732b4
Improve performance of StringUtils.capitalize()
...
Issue: SPR-15094
2017-01-12 22:51:56 +01:00
Juergen Hoeller
c5500b2332
MockHttpServletRequestBuilder supports multiple locales
...
Includes revised content type handling.
Issue: SPR-15116
(cherry picked from commit 02d727f
)
2017-01-12 22:50:50 +01:00
Juergen Hoeller
de611cb3a9
SpringValidatorAdapter properly handles HV-5-style list constraint violations
...
Issue: SPR-15082
(cherry picked from commit d0e9328
)
2017-01-12 22:50:33 +01:00
Juergen Hoeller
72a76367f2
AbstractMessageSource does not attempt to format code-as-default-message
...
Issue: SPR-15123
(cherry picked from commit b06423a
)
2017-01-12 22:50:22 +01:00
Juergen Hoeller
5afc3a3a50
Map resolution for multiple beans applies to plain Map interface declaration only
...
Issue: SPR-15117
(cherry picked from commit 8084da5
)
2017-01-12 22:50:04 +01:00
Juergen Hoeller
2f2ef00d1f
BeanDefinitionBuilder supports factory method on factory bean
...
Issue: SPR-15098
(cherry picked from commit 9e6aa0f
)
2017-01-12 22:49:44 +01:00
Juergen Hoeller
de7eea4498
GenericTableMetaDataProvider falls back to single schema as default
...
Issue: SPR-15090
(cherry picked from commit de43497
)
2017-01-12 22:49:32 +01:00
Juergen Hoeller
e9a87de965
LinkedCaseInsensitiveMap provides case-insensitive keySet again
...
Issue: SPR-15026
(cherry picked from commit 50e5a65
)
2017-01-12 22:49:25 +01:00
Gary Russell
db7b74feac
Implement MessagingException.toString()
...
Issue: SPR-15091
Closes gh-1284
2017-01-05 10:25:55 +01:00
Philippe Marschall
f7d126043b
Remove use of Boolean constructors
...
Codacy warns us that there are several references to Boolean
constructors in the tests. Direct usage of the Boolean constructor is
discouraged and even deprecated in Java 9 [1]. Boolean constructor use
can easily be replaced with the constant instances.
This commit contains the following changes:
- replace references to Boolean constructors with boolean constants in
JSP tag tests
- update the copyright year where necessary
- BooleanComparatorTests is intentionally left unchanged as it should
also work with the non-constant instances correctly
[1] http://download.java.net/java/jdk9/docs/api/java/lang/Boolean.html#Boolean-boolean-
Issue: SPR-15076
2017-01-04 09:32:32 +01:00
Philippe Marschall
55b44b4f86
Avoid use of double constructor of BigDecimal
...
Codacy warns about an Error Prone [1] use of the double constructor of
BigDecimal in tests. The reason given is that it is a source of
precision loss if the number does not have an exact double
representation. The recommendation is to use the String constructor of
BigDecimal instead as it does not require using a lossy argument.
This commit contains the following changes:
- replace usage of the double constructor of BigDecimal with the
String constructor of BigDecimal in JdbcTemplateQueryTests
- update the copyright year
[1] http://errorprone.info/bugpattern/BigDecimalLiteralDouble
Issue: SPR-15077
2017-01-04 09:32:23 +01:00
Rob Winch
523370b6f2
Fix ForwardedHeaderFilter with non-empty contextPath
...
Issue: SPR-15088
2017-01-03 14:52:50 -06:00
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
2017-01-03 18:02:45 +01:00
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
2017-01-03 11:18:40 +01:00
Juergen Hoeller
8fc65ab0a5
Clarified setAutowireCandidate semantics (plus attribute reordering in BeanDefinition)
...
Issue: SPR-15072
(cherry picked from commit e8a082f
)
2016-12-30 11:55:55 +01:00
Juergen Hoeller
b6108e3b2d
Upgrade to ASM 5.2
...
Issue: SPR-15071
(cherry picked from commit ccabff6
)
2016-12-30 11:55:50 +01:00
Juergen Hoeller
26a4aef417
Polishing
...
(cherry picked from commit fc629bb
)
2016-12-29 23:12:11 +01:00
Juergen Hoeller
050f2c746d
Track bean dependencies for calls between @Bean methods within @Configuration classes
...
Issue: SPR-15069
(cherry picked from commit a5c6658
)
2016-12-29 23:12:05 +01:00
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
)
2016-12-29 23:12:00 +01:00
Juergen Hoeller
794580ffcd
TypeDescriptor efficiently matches equal annotations as well
...
Issue: SPR-15060
(cherry picked from commit e38c020
)
2016-12-28 23:21:14 +01:00
Juergen Hoeller
d44bc27c9a
Avoid FactoryBean initialization on isSingleton check for decorated bean definition
...
Issue: SPR-14892
Issue: SPR-15042
(cherry picked from commit 209e7a7
)
2016-12-28 23:20:15 +01:00
Juergen Hoeller
243e21a3ea
Backport streamlined ClassPathBeanDefinitionScanner setup
...
Issue: SPR-15061
2016-12-27 18:32:03 +01:00
Juergen Hoeller
20aaa8841c
PATCH does not work with the standard JDK HTTP library
...
Issue: SPR-15052
(cherry picked from commit 0480981
)
2016-12-27 18:31:14 +01:00
Juergen Hoeller
d77ab67c56
AbstractNestablePropertyAccessor's setPropertyValue refactored into several delegate methods
...
Issue: SPR-15053
(cherry picked from commit 64d6561
)
2016-12-27 18:31:05 +01:00
Sebastien Deleuze
dd2b6a0fc5
Avoid NPE in AutoProxyRegistrar when no attribute found
...
Issue: SPR-15055
2016-12-27 16:34:29 +01:00
Juergen Hoeller
f949461297
Polishing
...
(cherry picked from commit a8741dd
)
2016-12-26 11:40:49 +01:00
Juergen Hoeller
9a39a25bb5
Detect generic type match behind interface-based proxy as well
...
Issue: SPR-14097
(cherry picked from commit f805427
)
2016-12-26 11:40:40 +01:00
Juergen Hoeller
4b018407c1
Expose reflection metadata with ASM-driven method order
...
Issue: SPR-14505
(cherry picked from commit 0208198
)
2016-12-26 11:40:33 +01:00
Juergen Hoeller
28e114b569
Clarify programmatic contract (no annotation-driven injection)
...
Issue: SPR-8704
(cherry picked from commit fd41f63
)
2016-12-26 11:40:25 +01:00
Juergen Hoeller
99226e0fa6
Polishing
2016-12-23 21:16:43 +01:00
Juergen Hoeller
4a84ee07be
ConfigurationClassParser enforces @Bean declaration order through ASM metadata
...
Issue: SPR-14505
(cherry picked from commit 3295a4e
)
2016-12-23 20:46:11 +01:00
Juergen Hoeller
505480cf63
LinkedCaseInsensitiveMap delegates to LinkedHashMap instead of extending it
...
Issue: SPR-15026
(cherry picked from commit 8147c11
)
2016-12-23 20:46:07 +01:00