Brian Clozel
536f115c37
Release v7.0.0-M3
9 months ago
Brian Clozel
d9bd168d54
Merge branch '6.2.x'
9 months ago
Brian Clozel
5e82ee6bd7
Next development version (v6.2.5-SNAPSHOT)
9 months ago
Sam Brannen
68fce29ae9
Support Optional with null-safe and Elvis operators in SpEL expressions
...
This commit introduces null-safe support for java.util.Optional in the
following SpEL operators:
- PropertyOrFieldReference
- MethodReference
- Indexer
- Projection
- Selection
- Elvis
Specifically, when a null-safe operator is applied to an empty
`Optional`, it will be treated as if the `Optional` were `null`, and
the subsequent operation will evaluate to `null`. However, if a
null-safe operator is applied to a non-empty `Optional`, the subsequent
operation will be applied to the object contained in the `Optional`,
thereby effectively unwrapping the `Optional`.
For example, if `user` is of type `Optional<User>`, the expression
`user?.name` will evaluate to `null` if `user` is either `null` or an
empty `Optional` and will otherwise evaluate to the `name` of the
`user`, effectively `user.get().getName()` for property access.
Note, however, that invocations of methods defined in the `Optional`
API are still supported on an empty `Optional`. For example, if `name`
is of type `Optional<String>`, the expression `name?.orElse('Unknown')`
will evaluate to "Unknown" if `name` is an empty `Optional` and will
otherwise evaluate to the `String` contained in the `Optional` if
`name` is a non-empty `Optional`, effectively `name.get()`.
Closes gh-20433
9 months ago
Sam Brannen
1780e30a43
Polish documentation for SpEL Elvis operator
9 months ago
Sam Brannen
c7b0550e43
Test status quo for Optional support in SpEL expressions
...
This is a prerequisite for null-safe Optional support.
See gh-20433
9 months ago
Sam Brannen
71716e848d
Cache capitalized name in SpEL's ReflectivePropertyAccessor
9 months ago
Sam Brannen
2c05e991b5
Revise SpEL internals and documentation
...
This is a prerequisite for null-safe Optional support.
See gh-20433
9 months ago
Sam Brannen
d3d951e44b
Improve documentation for SpEL Elvis operator
9 months ago
rstoyanchev
f8a82b46c1
Fix WebSocketHandlerMapping match for "/*"
...
Closes gh-34503
9 months ago
Juergen Hoeller
057742f27a
Remove Netty 5 support
...
See gh-34345
9 months ago
Juergen Hoeller
ea551cd9b3
Merge branch '6.2.x'
...
# Conflicts:
# build.gradle
# framework-platform/framework-platform.gradle
9 months ago
Juergen Hoeller
387677eae8
Upgrade to JUnit 5.12
...
Closes gh-34416
9 months ago
Sébastien Deleuze
1eec0382d7
Polishing
...
See gh-34557
9 months ago
Sébastien Deleuze
762831e742
Add BeanRegistrarDsl.register
...
See gh-34557
9 months ago
Juergen Hoeller
641b809d4b
Upgrade to Reactor 2025.0.0-M1
...
Closes gh-34577
9 months ago
Juergen Hoeller
0d3f07fdd6
Merge branch '6.2.x'
...
# Conflicts:
# framework-platform/framework-platform.gradle
9 months ago
Juergen Hoeller
4a314867d7
Upgrade to Reactor 2024.0.4 and Micrometer 1.14.5
...
Closes gh-34578
Closes gh-34580
9 months ago
Sam Brannen
eb7b26db24
Merge branch '6.2.x'
9 months ago
Sam Brannen
020f556841
Support custom attribute with a value in MockCookie.parse()
...
Prior to this commit, MockCookie.parse() failed with an
IllegalArgumentException when attempting to parse a custom attribute
with a value, such as "Version=1". This is a regression that was
inadvertently introduced in 7fc4937199
when adding support for the "Partitioned" attribute which does not
support a value.
This commit addresses this regression by parsing both the name and the
value from an optional, custom attribute.
See gh-31454
Closes gh-34575
9 months ago
Juergen Hoeller
86b21d9b5c
Add support for BeanRegistrar registration on GenericApplicationContext
...
Closes gh-34574
9 months ago
Juergen Hoeller
beb3a91847
Upgrade to Hibernate ORM 7.0.0.Beta4
...
Includes Hamcrest 3.0
See gh-33750
9 months ago
rstoyanchev
4d955f9ed8
Merge branch '6.2.x'
9 months ago
rstoyanchev
6ea3b5a0e8
Fix Javadoc failure
...
See gh-34549
9 months ago
rstoyanchev
f8f712dff8
Merge branch '6.2.x'
9 months ago
rstoyanchev
d764087dbf
Correct since tag
...
See gh-34549
9 months ago
rstoyanchev
bb2174c260
Merge branch '6.2.x'
9 months ago
rstoyanchev
9ab43b138a
Enhancement in HandlerMethodValidationException
...
Add dedicated method to Visitor for constraints directly on a
RequestBody method parameter (rather than nested).
Closes gh-34549
9 months ago
rstoyanchev
09ae080b99
isDisconnectedClientException protected for null
...
Closes gh-34533
9 months ago
rstoyanchev
e73dc37513
API versioning support for Spring WebFlux
...
Closes gh-34566
9 months ago
rstoyanchev
51d34fff64
API versioning support for Spring MVC
...
See gh-34566
9 months ago
Sébastien Deleuze
e9701a9ce3
Remove support for Aware interfaces in BeanRegistrar
...
Closes gh-34562
9 months ago
Juergen Hoeller
15b251dcd6
Merge branch '6.2.x'
...
# Conflicts:
# framework-platform/framework-platform.gradle
9 months ago
Juergen Hoeller
70a1b2fae3
Upgrade to Checkstyle 10.21.4
9 months ago
Juergen Hoeller
90ddb40d7a
Upgrade to Jetty 12.0.17 and Jetty Reactive HttpClient 4.0.9
...
Includes Apache HttpClient 5.4.1, Netty 4.1.119, Jackson 2.18.3, Gson 2.12.1, FreeMarker 2.3.34, Protobuf 4.30, Groovy 4.0.26, Jython 2.7.4, JRuby 9.4.12, Caffeine 3.2, QDox 2.2, Awaitility 4.3, EasyMock 5.5, HtmlUnit 4.10
Closes gh-34561
9 months ago
Sébastien Deleuze
91d0ebe327
Refine BeanRegistryAdapterTests
...
Closes gh-34557
9 months ago
Phillip Webb
789791e186
Allow chained BeanRegistry registration
...
Add a `register(BeanRegistry registry)` method to `BeanRegistry`
to allow registration chaining.
See gh-34557
9 months ago
Sébastien Deleuze
a0e2d3a221
Add support for target type to BeanRegistry
...
Closes gh-34560
9 months ago
Juergen Hoeller
c74f897fac
Merge branch '6.2.x'
...
# Conflicts:
# spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java
9 months ago
Juergen Hoeller
143985e862
Add tests for primary/fallback/defaultCandidate precedence
...
Closes gh-34449
9 months ago
Juergen Hoeller
4bd280b87e
Explain availability and uniqueness (including primary/fallback/default) in javadoc
...
Closes gh-34447
9 months ago
Juergen Hoeller
5877a38fa1
Add explicit note on JSpecify support in Spring Framework 6.2 vs 7.0
...
Closes gh-34551
9 months ago
Yanming Zhou
639af7befa
Add tests to ensure bean definition flag "fallback" take precedence over "defaultCandidate"
...
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
9 months ago
Sam Brannen
86d81632c8
Consistently invoke isNullSafe()
10 months ago
Sam Brannen
80df88bd4f
Clean up warnings in Gradle build
10 months ago
Sam Brannen
15a71f94fb
Merge branch '6.2.x'
10 months ago
Vedran Pavic
94d29bac9f
Fix typo in Spring MVC error responses documentation
...
Closes gh-34552
Signed-off-by: Vedran Pavic <vedran@vedranpavic.com>
10 months ago
Sébastien Deleuze
5bd03494d4
Merge branch '6.2.x'
10 months ago
Dmitry Sulman
a6f3f18d89
Allow supertypes in ContentResultMatchersDsl matchers
...
Closes gh-34542
Signed-off-by: Dmitry Sulman <dmitry.sulman@gmail.com>
10 months ago
Sébastien Deleuze
fda9b9a696
Polishing
...
See gh-18353
10 months ago