Juergen Hoeller
2784410cc6
Polishing
2023-11-22 13:01:03 +01:00
Juergen Hoeller
f4ac323409
Test for mixed order across bean factory hierarchy
...
See gh-28374
(cherry picked from commit 48f3c08395 )
2023-11-22 12:46:36 +01:00
rstoyanchev
6db00e63c7
WebSocketMessageBrokerStats implements SmartInitializingSingleton
...
Closes gh-26536
2023-11-21 17:58:32 +00:00
“7fantasy7”
ed613e767a
Skip buffer in StreamUtils#copy(String)
...
(cherry picked from commit 54f87f1ff7 )
2023-11-20 21:30:01 +01:00
Juergen Hoeller
65781046cf
Polishing
...
(cherry picked from commit fff50657d2 )
2023-11-20 21:23:46 +01:00
Juergen Hoeller
0ee36095e7
Restore outdated local/remote-slsb attributes for declaration compatibility
...
Legacy EJB attributes are ignored since 6.0 due to being bound to a plain JndiObjectFactoryBean - but can still be declared now, e.g. when validating against the common versions of spring-jee.xsd out there.
Closes gh-31627
(cherry picked from commit 695559879e )
2023-11-20 21:23:42 +01:00
Stéphane Nicoll
0fc38117df
Handle default package with AOT processing
...
Adding generated code in the default package is not supported as we
intend to import it, most probably from another package, and that is
not supported. While this situation is hard to replicate with Java,
Kotlin is unfortunately more lenient and users can end up in that
situation if they forget to add a package statement.
This commit checks for the presence of a valid package, and throws
a dedicated exception if necessary.
Closes gh-31629
2023-11-20 11:54:55 +01:00
Sam Brannen
86b8a70ce6
Ensure PathResourceResolvers log warnings for non-existent resources
...
Prior to this commit, the getResource() methods in PathResourceResolver
implementations allowed an exception thrown from Resource#getURL() to
propagate instead of logging a warning about the missing resource as
intended.
This commit modifies the getResource() methods in PathResourceResolver
implementations so that the log messages include the output of the
toString() implementations of the underlying resources instead of their
getURL() implementations, which may throw an exception.
Furthermore, logging the toString() output of resources aligns with the
existing output for "allowed locations" in the same log message.
Note that the toString() implementations could potentially also throw
exceptions, but that is considered less likely.
See gh-31623
Closes gh-31624
(cherry picked from commit 7d2ea7e7e1 )
2023-11-20 11:50:51 +01:00
Spring Builds
4bf759d872
Next development version (v6.0.15-SNAPSHOT)
2023-11-16 14:07:29 +00:00
rstoyanchev
770cbd2fb5
Revise exception handling in HandlerMappingIntrospector
...
See gh-31588
2023-11-16 11:15:29 +00:00
Juergen Hoeller
e5f04e5ddf
Polishing
2023-11-16 11:34:31 +01:00
Brian Clozel
c18784678d
Reduce allocations in server conventions
...
This commit optimizes the default observation conventions to reduce
`KeyValues` allocations.
2023-11-16 09:00:24 +01:00
Stéphane Nicoll
51cdff591c
Merge pull request #31612 from PiotrFLEURY
...
* pr/31612:
Polish "Provide invalid class name in exception message"
Provide invalid class name in exception message
Closes gh-31612
2023-11-15 20:49:55 +01:00
Stéphane Nicoll
d93114df9a
Polish "Provide invalid class name in exception message"
...
See gh-31612
2023-11-15 20:45:24 +01:00
PiotrFLEURY
5ac4c3bd76
Provide invalid class name in exception message
...
See gh-31612
2023-11-15 20:40:45 +01:00
rstoyanchev
05c3ffb2fb
Use InvalidMimeTypeException in MimeTypeUtils#sortBySpecificity
...
Closes gh-31254
2023-11-15 18:57:23 +00:00
rstoyanchev
19e8ed130c
Cache Filter for HandlerMappingIntrospector and log warnings
...
See gh-31588
2023-11-15 18:57:23 +00:00
Stéphane Nicoll
4464251754
Add missing runtime hints for ProblemDetail mixins
...
Closes gh-31606
2023-11-15 18:44:17 +01:00
Arjen Poutsma
8868fe2ea5
Fix position bug in NettyDataBuffer::toByteBuffer
...
Closes gh-31605
2023-11-15 14:23:43 +01:00
Juergen Hoeller
c373f496f3
Consistent ordering of overloaded operations
2023-11-15 13:29:35 +01:00
Juergen Hoeller
eb1883bdc4
Upgrade to Reactor 2022.0.13 and Netty 4.1.101
...
Includes RxJava 3.1.8, Apache HttpComponents Core Reactive 5.2.3, POI 5.2.4, Commons IO 2.15, WebJars Locator 0.55, OpenPDF 1.3.33, JRuby 9.4.5, H2 2.2.224, ActiveMQ 5.17.6, Checkstyle 10.12.5
Closes gh-31585
2023-11-15 13:29:13 +01:00
Stéphane Nicoll
df6f66110f
Fix wrong nullability requirement
...
Closes gh-31610
2023-11-15 12:01:26 +01:00
rstoyanchev
ac235a0c43
Fix checkstyle violation
2023-11-14 20:00:16 +00:00
rstoyanchev
a4e3af5cbe
Revise HandlerMappingIntrospector caching
...
Expose methods to set and reset cache to use from a Filter instead
of a method to create such a Filter. Also use cached results only
if they match by dispatcher type and requestURI.
See gh-31588
2023-11-14 19:24:29 +00:00
Sam Brannen
e71117dcdf
Polish contribution
...
See gh-31598
2023-11-14 14:46:34 +01:00
Jason
d5874ab99e
Avoid duplicate resources in PathMatchingResourcePatternResolver on Windows
...
This commit updates PathMatchingResourcePatternResolver to avoid
returning duplicate resources on MS Windows when searching using the
`classpath*:` prefix and a wildcard pattern that matches resources
which are directly present in a JAR as well as present via classpath
manifest entries.
Closes gh-31598
2023-11-14 14:39:48 +01:00
Juergen Hoeller
99327b7db1
Preserve nested square brackets within parameter name
...
Closes gh-31596
2023-11-14 12:51:19 +01:00
Juergen Hoeller
3e06441d97
Cache SpEL-loaded types in StandardTypeLocator
...
Closes gh-31579
2023-11-14 12:46:16 +01:00
Brian Clozel
01f2925048
Upgrade to Micrometer 1.10.13
...
Closes gh-31586
2023-11-13 14:28:45 +01:00
rstoyanchev
44a37000ec
HandlerMappingIntrospector exposes Filter for caching
...
Closes gh-31588
2023-11-10 17:43:52 +00:00
rstoyanchev
53fe5fafed
Minor refactoring in HandlerMappingIntrospector
...
See gh-31588
2023-11-10 17:27:54 +00:00
rstoyanchev
b9bd98fc5b
Polishing in HandlerMappingIntrospector
...
See gh-31588
2023-11-10 11:27:44 +00:00
rstoyanchev
7714110940
Polishing in DefaultWebClient
2023-11-09 12:53:15 +00:00
rstoyanchev
75d1278bde
Include port when logging URI in DefaultWebClient
...
Closes gh-30519
2023-11-09 12:53:15 +00:00
Sébastien Deleuze
620f558547
Register hints for superclass in BindingReflectionHintsRegistrar
...
Closes gh-31552
2023-11-09 13:11:36 +01:00
Juergen Hoeller
1e78cc35e5
Log4jLog re-resolves ExtendedLogger on deserialization
...
This is necessary for compatibility with Log4J 2.21, analogous to the existing re-resolution in Spring's SLF4J adapter.
Closes gh-31582
2023-11-09 11:46:22 +01:00
Juergen Hoeller
11fdb5ba17
Upgrade to Log4J 2.21.1, Tomcat 10.1.15, Jetty 11.0.18, Undertow 2.3.10, EclipseLink 3.0.4, Mockito 5.7
2023-11-09 10:53:47 +01:00
Juergen Hoeller
9957bb6918
Check for procedure vs function constants in CallMetaDataContext
...
Closes gh-31550
2023-11-09 10:52:51 +01:00
lorenzsimon
6a7a0bddb7
Restore support for recursive annotations in Kotlin
...
This commit reinstates support for recursive annotations in Kotlin.
See gh-28012
See gh-28618
See gh-31400
Closes gh-31518
2023-11-08 13:28:28 +01:00
rstoyanchev
5c012bbb0c
Set maxAge correctly when expiring WebSession
...
Closes gh-31214
2023-11-08 11:44:36 +00:00
rstoyanchev
5df6e8825d
Polishing in CookieWebSessionIdResolver
...
See gh-31214
2023-11-06 11:31:39 +00:00
rstoyanchev
654e822676
Fix Javadoc link
2023-11-03 14:38:53 +00:00
Stéphane Nicoll
e943058b18
Merge pull request #31571 from izeye
...
* pr/31571:
Add Javadoc since to ProblemDetail.setProperties()
Closes gh-31571
2023-11-08 08:04:10 +01:00
Johnny Lim
cafb38ad1d
Add Javadoc since to ProblemDetail.setProperties()
...
See gh-31571
2023-11-08 08:02:57 +01:00
Sam Brannen
e778d2e908
Polish duplicate key exception error code support for SAP HANA database for R2DBC
...
See gh-31554
2023-11-07 17:12:29 +01:00
Sam Brannen
c5bcfc7682
Polish contribution
...
See gh-31554
2023-11-07 17:08:44 +01:00
Sam Brannen
5752e03d97
Polishing
2023-11-07 16:58:21 +01:00
Arjen Poutsma
dc26d3b0ec
Defer cleanup in DefaultServerWebExchange
...
This commit ensures that the multipartRead flag is read in a deferred
block, and is not evaluated too early.
Closes gh-31567
2023-11-07 15:00:20 +01:00
Stéphane Nicoll
7f94c64b72
Merge pull request #31554 from baratrax
...
* pr/31554:
Polish "Add SAP HANA duplicate key exception error code"
Add SAP HANA duplicate key exception error code
Closes gh-31554
2023-11-07 10:37:14 +01:00
Stéphane Nicoll
50e55d5219
Polish "Add SAP HANA duplicate key exception error code"
...
See gh-31554
2023-11-07 10:33:14 +01:00