Commit Graph

18393 Commits

Author SHA1 Message Date
Juergen Hoeller
400b39da3f Revise documentation notes on getParameterType performance issues
See gh-25679

(cherry picked from commit 939c76c4a5)
2020-09-05 13:27:48 +02:00
Juergen Hoeller
c5d3bcfb14 Restore original 4.x behavior for initialization of function return name
Closes gh-25707

(cherry picked from commit 40bf83c9e5)
2020-09-05 13:27:05 +02:00
Juergen Hoeller
9b7f64a102 Fix SpEL generated code for default method invocation
Closes gh-25706

(cherry picked from commit c368ce8223)
2020-09-05 13:26:49 +02:00
Juergen Hoeller
755721fd21 Avoid full singleton lock for getSingleton(beanName, false)
Closes gh-25667

(cherry picked from commit d8c420ab75)
2020-09-04 00:38:10 +02:00
Juergen Hoeller
0ecdf0ba7c Retry SQLErrorCodesFactory retrieval if DatabaseMetaData access failed
Closes gh-25681
2020-09-03 23:15:06 +02:00
Stephane Nicoll
81d5e66fe7 Make DataSize serializable
Closes gh-25676
2020-09-02 14:45:32 +02:00
Juergen Hoeller
b95edb549b Upgrade to Checkstyle 8.36 2020-09-01 23:43:36 +02:00
Juergen Hoeller
b0b4b47bae Explicit nullability declarations for getTarget() implementations 2020-09-01 23:31:00 +02:00
Juergen Hoeller
c9573a4fb6 Polishing 2020-09-01 10:47:37 +02:00
Juergen Hoeller
210dd0392f Upgrade to AspectJ 1.9.6 2020-08-28 22:59:04 +02:00
Juergen Hoeller
db3570d0cf Polishing 2020-08-28 22:54:06 +02:00
Juergen Hoeller
eba1aba9f5 Specifically detect Joda-Time 2.x
Closes gh-25655
2020-08-28 22:21:09 +02:00
Juergen Hoeller
0117a5f4c9 Polishing
(cherry picked from commit bb9e79daa7)
2020-08-28 22:20:44 +02:00
Juergen Hoeller
72683766dc Upgrade to Checkstyle 8.35 2020-08-27 16:29:48 +02:00
Juergen Hoeller
3a9896b849 Polishing 2020-08-27 16:28:59 +02:00
Juergen Hoeller
eb483d1028 Upgrade to Hibernate ORM 5.3.18 2020-08-27 15:35:09 +02:00
Juergen Hoeller
2891dc6409 Polishing 2020-08-27 15:33:08 +02:00
Juergen Hoeller
f7440884c9 Avoid potential integer overflow in seconds->millis transformation
Closes gh-25613
2020-08-27 15:32:54 +02:00
Juergen Hoeller
1a6a4598a1 Populate dependencies metadata for resolved target behind lazy dependency proxy
Closes gh-25562
2020-08-07 21:56:41 +02:00
Juergen Hoeller
2a331ab9e2 Upgrade to Jetty 9.4.31 2020-08-07 15:48:53 +02:00
Juergen Hoeller
46c296b154 Polishing 2020-08-07 15:48:13 +02:00
Juergen Hoeller
bfd20da9de Polishing (backported from 5.2.x) 2020-08-07 14:51:08 +02:00
Juergen Hoeller
ce4001dd40 Refine use of substring operations
Closes gh-25445
2020-08-07 14:50:44 +02:00
Juergen Hoeller
b254777744 Reset charset field in MockHttpServletResponse
Closes gh-25501
2020-08-07 14:50:36 +02:00
Juergen Hoeller
d9f9f8b0de Avoid unnecessary computation of cleaned URL
Closes gh-25531

(cherry picked from commit 96a4e1150e)
2020-08-07 14:50:29 +02:00
Sam Brannen
4e70e4c81d Regression tests for @RestControllerAdvice support in MockMvc
This commit introduces regression tests for @RestControllerAdvice
support in standalone MockMvc configurations.

See gh-25520
2020-08-05 18:17:06 +02:00
Sam Brannen
f868486be5 Fix bug in StaticListableBeanFactory.isSingleton()
Prior to this commit, StaticListableBeanFactory.isSingleton() returned
false for singleton beans unless they were created by a FactoryBean.

StaticListableBeanFactory.isSingleton() now properly returns true for
all beans not created by a FactoryBean.

Closes gh-25522
2020-08-04 15:51:27 +02:00
Spring Buildmaster
a67ac8267f Next Development Version 2020-07-21 07:09:40 +00:00
Juergen Hoeller
35adf2b1bc Defer creating logger in StandardWebSocketHandlerAdapter to instantiation time
Closes gh-25427

(cherry picked from commit 64f4703445)
2020-07-20 17:12:51 +02:00
Rossen Stoyanchev
6be892e03d Upgrade to Reactor Californium-SR20
Closes gh-25412
2020-07-20 16:39:47 +03:00
Juergen Hoeller
ab6b504692 Copy queryParams MultiValueMap through addAll (for independent List entries)
Closes gh-25423
2020-07-20 07:35:05 +02:00
Juergen Hoeller
515bae9195 Defensively access existing beanDefinitionMap entries
See gh-22263

(cherry picked from commit f1345aadf5)
2020-07-20 07:28:12 +02:00
Juergen Hoeller
7a793588fb Unwrap SqlParameterValue for disposable value detection in cleanupParameters
Closes gh-22972

(cherry picked from commit 43e315f10c)
2020-07-19 20:04:46 +02:00
Juergen Hoeller
1c5fb9a3e8 Defensively catch NoSuchBeanDefinitionException on beanDefinitionNames traversal
Closes gh-22263

(cherry picked from commit 30bc5e09e7)
2020-07-19 20:04:32 +02:00
Juergen Hoeller
d841af4e37 Avoid unnecessarily alarming stack trace logged during scheduler resolution
Closes gh-23268

(cherry picked from commit 7b6924522a)
2020-07-19 20:04:22 +02:00
Juergen Hoeller
ba8000d5b8 Polishing 2020-07-17 19:15:06 +02:00
Juergen Hoeller
d6d3023ed9 Upgrade to Tomcat 9.0.37, Netty 4.1.51, Checkstyle 8.34 2020-07-17 18:29:33 +02:00
Juergen Hoeller
f96a3d5ee1 Polishing 2020-07-17 18:29:08 +02:00
Juergen Hoeller
a53d28edf1 Consistently use PropertySource.getName() for comparison
Includes synchronization for mutators on MutablePropertySources.

Closes gh-25369

(cherry picked from commit 01bab89dba)
2020-07-17 18:06:20 +02:00
Juergen Hoeller
a6f7386c9d Clarify enforceInitMethod/enforceDestroyMethod default values
Closes gh-25402

(cherry picked from commit 5846d9c2ea)
2020-07-17 18:06:12 +02:00
Stephane Nicoll
bca63918ab Switch to Reactor Californium snapshots 2020-07-17 10:00:28 +02:00
Sam Brannen
14d539017c Make Profiles created via Profiles.of() comparable
Prior to this commit, a Profiles instance created via Profiles.of() was
not considered equivalent to another Profiles instance created via
Profiles.of() with the exact same expressions. This makes it difficult
to mock invocations of Environment#acceptsProfiles(Profiles) -- for
example, when using a mocking library such as Mockito.

This commit makes Profiles instances created via Profiles.of()
"comparable" by implementing equals() and hashCode() in ParsedProfiles.

Note, however, that equivalence is only guaranteed if the exact same
profile expression strings are supplied to Profiles.of(). In other
words, Profiles.of("A & B", "C | D") is equivalent to
Profiles.of("A & B", "C | D") and Profiles.of("C | D", "A & B"), but
Profiles.of("X & Y") is not equivalent to Profiles.of("X&Y") or
Profiles.of("Y & X").

Closes gh-25340
2020-07-07 14:41:08 +02:00
Arjen Poutsma
f4ae18fa89 Support for ASCII in Jackson codec & converter
This commit introduces support for writing JSON with an US-ASCII
character encoding in the Jackson encoder and message converter,
treating it like UTF-8.

See gh-25322

(cherry picked from commit 79c339b03e)
2020-06-30 16:04:11 +02:00
Juergen Hoeller
fc5a6db84b Polishing 2020-06-23 11:47:47 +02:00
Arjen Poutsma
9a847dc5a0 Map from charset name rather than Charset
With this commit it is no longer assumed that all charset names in the
JsonEncoding can be resolved by Charset.forName. Instead, we store the
charset name itself, rather than the Charset object.
2020-06-22 09:50:56 +02:00
Brian Clozel
a82cf2fb7d Fix missing sslInfo with Reactor Netty and http/2
Prior to this commit, the `SslInfo` would be missing for WebFlux apps
when deployed on Reactor Netty with http/2.

This commit ensures that the request adapter checks the current channel
and the parent channel for the presence of the `SslHander`.
In the case of http/2, the `SslHander` is tied to the parent channel.

Fixes gh-25286
See gh-25278
2020-06-19 16:46:09 +02:00
Juergen Hoeller
a6258b8b4f Upgrade to Jetty 9.4.30 2020-06-17 16:09:19 +02:00
Juergen Hoeller
0400fc8443 Avoid misleading log message for commit-triggering exception
Closes gh-25253
2020-06-17 16:08:52 +02:00
Arjen Poutsma
df9d09389f Convert non-unicode input when reading w/ Jackson
This commit makes sure that Jackson-based message converters and
decoders can deal with non-unicode input. It does so by reading
non-unicode input messages with a InputStreamReader.

This commit also adds additional tests forthe canRead/canWrite methods
on both codecs and message converters.

Closes: gh-25247
2020-06-16 14:29:02 +02:00
Juergen Hoeller
3d14970c03 Polishing 2020-06-12 00:13:19 +02:00