fix(deps): update spring core to v6.2.2
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| org.springframework:spring-test | dependencies | minor |
6.1.12 -> 6.2.2
|
| org.springframework:spring-beans | dependencies | minor |
6.1.12 -> 6.2.2
|
| org.springframework:spring-context | dependencies | minor |
6.1.14 -> 6.2.2
|
| org.springframework:spring-core | dependencies | minor |
6.1.12 -> 6.2.2
|
Release Notes
spring-projects/spring-framework (org.springframework:spring-test)
v6.2.2
⭐ New Features
- Track only qualifier annotations in
BeanOverrideHandler#34260 - Remove
@FunctionalInterfacedeclaration fromBeanOverrideProcessor#34259 - Refine default filtered headers for web data binding #34182
- Improve query params in uri KeyValue with HTTP interface client #34176
- Refine location checks for PathResource #34167
- Avoid virtual thread pinning in procedure calling #34133
- Type-level constraint violation should result in ParameterErrors #34105
- Avoid logger serialization behind shared EntityManager proxy #34084
- Improve PathMatcher to PathPatternParser migration in mvc XML configuration #34064
- Support
@MockitoBeanat the type level on test classes #33925
:lady_beetle: Bug Fixes
- HttpHeadersAssert#doesNotContainsHeaders has a typo #34263
- Deadlock with background EntityManager bootstrap due to locking in getSingletonFactoryBeanForTypeCheck #34247
- ApplicationListener no longer invoked for double generic ApplicationEvent with 6.2.1 #34234
- Nested transaction savepoints are broken in SQL Server #34233
- Error handling override in DefaultResponseErrorHandler ignored after upgrade to 6.2.0 #34231
- FileNotFoundException is thrown when using ConfigurationPropertiesScan with Spring Context 6.2.1 #34216
- BindException declared but not handled by ExceptionHandler #34214
-
@TestBeanfactory method resolution is incorrect within class hierarchy #34204 - Bean Override in superclass takes precedence over Bean Override in subclass #34194
- Ensure
AsyncListener#onErrordoes not return until dispatch completes #34192 - BeanNotOfRequiredTypeException during transaction qualifier resolution in 6.2.1 #34187
- BeanCurrentlyInCreationException is thrown when multiple threads simultaneously try to create bean #34186
-
DataBinderthrowsIndexOutOfBoundsExceptionwhen indexed parameter uses nonconsecutive indices #34145 - NullPointerException is thrown if WebClient is used with Apache Httpclient and cookies are disabled #34132
- Wrong parentId tracking in FlightRecorderApplicationStartup #34128
- PathMatchingResourcePatternResolver is not able to resolve file in SpringBoot Packaged JAR #34126
- Placeholder resolution no longer considers exact match before resolving the placeholder key #34124
-
DataBinderthrowsStringIndexOutOfBoundsExceptionfor indexed property without nested property path #34121 - Dependency injection matches wildcards too leniently with 6.2.1 #34119
- PathMatchingResourcePatternResolver throws FileNotFoundException caused by wrong cache path #34111
- SpEL fails to invoke
MethodHandlefunction reference accepting only varargs #34109 - Generic with a base type is no longer resolved to its base if the generic is unresolved #34086
-
DataBinderthrowsStringIndexOutOfBoundsExceptionfor map property without nested property path #34043 - Fix implicit variable resolution in JSP
EvalTag#33945
📔 Documentation
- Fix inaccuracy in RequestHeaderArgumentResolver Javadoc #34230
- Document that http.client.requests measure the entire HTTP exchange #34201
- Misuse of em dash in "Basic Concept" section #34165
- Fix typo in link #34149
- Broken syntax in xml sample of "Reference to Other Beans" section #34148
- Fix minor typo in reference documentation for Kotlin annotations #34134
- Clarify documentation for the default uri client request observation metric #34116
- Fix broken links in the web reference documentation #34115
- Bean creation lazily ignores annotations like
@EventListener#34057
🔨 Dependency Upgrades
❤ Contributors
Thank you to all the contributors who worked on this release:
@Mattias-Sehlstedt, @Spanching, @brendenehlers, @izeye, @luozongle01, @micopiira, @ngocnhan-tran1996, @quaff, @rPraml, @remeio, and @scordio
v6.2.1
⭐ New Features
- Implement
toString()inTestBeanOverrideHandler#34072 - Log alias removal in
DefaultListableBeanFactory#34070 - Log warning when one Bean Override overrides another Bean Override #34056
- Introduce "unsafeAllocated" flag in TypeHint #34055
- Cannot assert status reason phrase with MockMvcTester #34016
- Improve toString for reactive ScheduledTask #34010
- Optimize sending requests without a body in RestClient and WebClient with Reactor Netty #34003
- Add missing
@Contractannotation toObjectUtils#isEmpty#33984 - OptionalValidatorFactoryBean suppresses Hibernate Validator configuration failures too much #33979
- Support
Flux<ServerSentEvent<Fragment>>in WebFlux #33975 - Update in FragmentsRendering to names of static methods #33974
- Honor
@Fallbacksemantics for Test Bean Overrides #33924 -
AdvisedSupport.MethodCacheKeyshould check for logical equality as well as identity #33915 - Fail with full description for XML diff in
XmlExpectationsHelper#33827 -
MapMethodProcessorshould only resolve arguments of type Map or the ModelMap hierarchy #33160
:lady_beetle: Bug Fixes
- Support binding from request headers via constructor args #34073
- Unable to configure custom scheduler for
@Scheduledannotation #34058 - Identical Bean Overrides are silently allowed #34054
- OOM due to NoTransactionInContextException in reactive pipeline #34048
- Priority header causes binding exception after upgrade to Spring Framework 6.2.0 #34039
-
@MockitoBeanincorrectly injects supertype into subtype field #34025 - NestedPlaceholder are not recursively resolved if the fallback is a placeholder #34020
- AOT no longer generates BeanInstanceSupplier signature for a CGLIB proxy with its public type #33998
- Nested transaction support via savepoints is broken in Oracle database #33987
- Proxy created with
IntroductionInterceptorbut withouttargetalways throws an exception #33985 -
ApplicationListenerno longer invoked for genericApplicationEventwith 6.2.0 #33982 - Error handling override in DefaultResponseErrorHandler ignored after upgrade to 6.2.0 #33980
- BeanCurrentlyInCreationException is thrown when multiple threads simultaneously try to create a FactoryBean #33972
- HandshakeWebSocketService assumes jakarta websocket is present #33970
-
@Valuecases SpringCGLIB$$0 required a bean of type java.lang.String that could not be found in Native compile when migrating to SB 3.4 #33960 - PathMatchingResourcePatternResolver should not log directory-skip messages at info level #33956
- Avoid infinite recursion in BeanValidationBeanRegistrationAotProcessor with recursive generics #33950
- Skip runtime hint registration for validation constraint with missing dependencies #33949
- Move Kotlin value class unboxing to
InvocableHandlerMethod#33943 -
MockResetstrategy is no longer honored for@MockitoBeanand@MockitoSpyBean#33941 -
TypeDescriptorwith recursive generics triggers infinite recursion inResolvableType.equals/hashCode#33932 - RestClient does not expose full URI template as attribute #33928
- Bean Overrides like
@MockitoBeanand@TestBeanshould not be allowed onstaticfields #33922 - Regression in duplicate beans with different method names #33920
📔 Documentation
- Fix link to MockMvcBuilders in reference documentation #34031
- Fix a typo in the filters documentation #33959
- Document visibility requirements for Bean Overrides #33923
- Fix typos and link in Observability documentation #33910
- SpEL documentation contains syntax errors #33907
- Improve explanation of AOP advice classes that should implement
MethodInterceptor#33901 - Reflect well-known HttpHeaders intent in Javadoc #33886
- Reflect well-known MediaTypes intent in Javadoc #33754
- Document support for varargs invocations in SpEL #33332
🔨 Dependency Upgrades
❤ Contributors
Thank you to all the contributors who worked on this release:
@Boiarshinov, @CHOICORE, @KNU-K, @izeye, @ngocnhan-tran1996, @scordio, @sonallux, and @youabledev
v6.2.0
⭐ New Features
- Update UndertowHttpHandlerAdapter to dispatch #33885
- Refine
@ContractJavadoc to mentionthisandnewreturn values #33849 - AOT processing for bean validation does not consider cascaded and container element constraints #33842
- Avoid repeated resolving of singleton beans through
@Lazyproxy #33841 - Regiser runtime hints for
@TestBeanfully-qualified method names #33836 - Introduce support for custom reason in
@DisabledInAotMode#33833 - Use optimistic locking where possible in
ResponseBodyEmitter#33831 - Revise cookies support with Apache HTTP Components in WebClient and WebTestClient #33822
- Remove the
pureattribute from@Contract#33820 - Introduce
@CheckReturnValueannotation #33818 - ResourceHttpRequestHandler throwing IllegalArgumentException if resource doesn't end with slash breaks some third-party libraris #33815
- Provide first-class virtual thread option on
ThreadPoolTaskExecutor/ThreadPoolTaskScheduler#33807 -
HttpServiceProxyFactoryshould omit optional@RequestParamif converted fromnullto empty string #33794 - Reactor Netty response should not buffer the full response #33781
- Relax the visibility of MockMVC DSL constructors #33778
- Support Publisher to InputStream conversion #31677
:lady_beetle: Bug Fixes
-
MockResetshould be honored without@Mockito[Spy]Beanfields #33829 - Test Bean Overrides do not honor
@Primarysemantics #33819 - Bean Overrides cannot reliably override beans created by a
FactoryBeanwith generics #33811 - Bean Overrides for certain
FactoryBeanuse cases no longer work #33800 -
@MockitoBean,@MockitoSpyBean, &@TestBeando not work with@DirtiesContext"before method" modes #33783 - Deprecate exchangeTimeout and refactor readTimeout in ReactorClientHttpRequestFactory #33782
📔 Documentation
- Revise documentation for SpEL
PropertyAccessorandIndexAccessorAPIs regarding ordering #33862 - Document UrlHandler Servlet and reactive filters #33784
- Improve documentation for
SpelCompilerMode#33223
🔨 Dependency Upgrades
- Upgrade to ASM 9.7.1 (for early Java 24 support) #33821
- Upgrade to Micrometer 1.14.0 #33876
- Upgrade to Reactor 2024.0.0 #33878
❤ Contributors
Thank you to all the contributors who worked on this release:
@Hejow, @OlegDokuka, and @lucky8987
v6.1.16
⭐ New Features
- Log alias removal in
DefaultListableBeanFactory#34071 - OptionalValidatorFactoryBean suppresses Hibernate Validator configuration failures too much #34041
- Update UndertowHttpHandlerAdapter to dispatch #33969
:lady_beetle: Bug Fixes
- HandshakeWebSocketService assumes jakarta websocket is present #34023
📔 Documentation
🔨 Dependency Upgrades
v6.1.15
⭐ New Features
- Use UriUtils to process static resource paths #33859
- Prefer modified resources over the originals in TestCompiler #33850
- Improve iteration methods in native headers to MultiValueMap adapters #33823
- Deregister empty
CachefromCacheManager#33813 - Rename
aopAvailableconstants inTransactionSynchronizationUtilsfor better GraalVM native image support #33796 - Load-time weaving support for WildFly 24+ #33728
:lady_beetle: Bug Fixes
- DefaultClientRequestObservationConvention generates wrong uri tag when missing path #33867
- HttpComponentsClientHttpRequestFactory setReadTimeout not working with httpclient 5.4 #33806
- HttpHeaders.writeableHttpHeaders(new HttpHeaders(readOnlyHttpHeaders)) is not writeable #33789
- RestClient exchange methods are not nullable #33779
- Throw
SpelParseExceptionfor unsupported character inSpelExpressionParser#33767 - DefaultMessageListenerContainer reports incorrect jms.process.message count #33758
- Autowiring fails if multiple non-highest
@Prioritybeans exist with same priority #33733 - Jackson2Decoder leaks on WebClient timeout #33731
- DefaultServerRequestObservationConvention throws when response status is zero #33725
- Aspect executed twice -
@AfterThrowing#33704 - parts w/o filename in
Content-Dispositionheader are not cleaned from temp folder (skipped byStandardServletMultipartResolver) #33511
📔 Documentation
- Resources link points to wrong section of reference guide #33882
- Remove mentions of Joda-Time support #33881
- SimpleAsyncTaskExecutor blocks calling thread when concurrencyLimit set #33873
- Fix formatting issue in validation section of reference guide #33871
- Fix typo in reference documentation #33865
- Fix XML bean reference example in reference manual #33855
- Fix a typo in documentation #33846
- Numerous warnings when injecting dependencies into configuration that implements CachingConfigurer #33834
-
@Asyncdocumentation should not suggest deprecated classes #33805 - Document that circular dependencies should be avoided in AOT mode #33786
- Inconsistent Lifecycle Management with Virtual Threads in Spring Boot Async Configuration #33780
- Fix incorrect regex rendering in MVC controller documentation #33766
- Improve documentation for
allowEagerInitparameter ingetBeanNamesForType()#33740 - Fix Javadoc in ReactorNetty2ResourceFactory #33735
- Document options for handling Date/Time parsing and formatting issues with JDK 20+ #33151
🔨 Dependency Upgrades
❤ Contributors
Thank you to all the contributors who worked on this release:
@Torres-09, @ZLATAN628, @hosamaly, @izeye, @kunaljani1100, @ngocnhan-tran1996, and @wilkinsona
v6.1.14
⭐ New Features
- Use Locale.ROOT for locale neutral, case insensitive comparisons #33708
- Improve checks for relative paths in static resource handling #33689
- CorsUtils.isCorsRequest throws unhandled IllegalArgumentException and returns 500 Internal Server Error on malfomed Origin header #33682
- Skip processing of Java annotations in
QualifierAnnotationAutowireCandidateResolver#33580 - Include argument name in
MethodArgumentTypeMismatchExceptionerror message #33573 - Preserve coroutine context in WebClientExtensions #33548
- Blocking call detected in ConcurrentReferenceHashMap by BlockHound #33450
- Warning message about bean post-processing and eager injection may suggest the wrong cause #33184
:lady_beetle: Bug Fixes
- DelegatingFilterProxy Causes Pinned Virtual Threads #33656
- Potential NPE from
MethodParameter.getMethod()check inKotlinDelegate.hasDefaultValue()#33609 - Missing native image hints for JDK proxies created by JMS connection factories #33590
-
AotTestExecutionListenershould not be invoked for a@DisabledInAotModetest class #33589 - Use encoded resource path instead of input path validation in spring-webflux #33568
-
org.springframework.util.ResourceUtils#toRelativeURLdrops customURLStreamHandler#33561 - Current observation not in scope during WebClient ExchangeFilterFunction execution #33559
-
ZoneIdEditorthrows wrong exception type forTypeConverterSupport#33545 - MimeMessageHelper addInline with ByteArrayResource fail with null filename #33527
-
@CacheablethrowsNullPointerExceptionwhenRuntimeExceptionis thrown inside annotated code #33492 - Path variable values missing in RedirectView when PathPattern are used #33422
- Reactive
HttpComponentsClientHttpResponseignoresExpirescookie attribute #33157
📔 Documentation
- Update fallback.adoc #33721
- Update scheduling.adoc #33703
- Fix link in testing/support-jdbc.adoc #33686
- Adapt Javadoc note about log level of BeanPostProcessorChecker #33617
- Reference the spring-framework-petclinic repository wich uses AspectJ #33539
🔨 Dependency Upgrades
- Upgrade to Apache HttpClient 5.4 #33587
- Upgrade to Apache HttpCore Reactive 5.3 #33588
- Upgrade to Awaitility 4.2.2 #33604
- Upgrade to Micrometer 1.12.11 #33647
- Upgrade to Reactor 2023.0.11 #33637
❤ Contributors
Thank you to all the contributors who worked on this release:
@arey, @asibross, @boulce, @drdpov, @hosamaly, @ilya40umov, @izeye, and @junhyeongkim2
v6.1.13
⭐ New Features
- Errors thrown from SmartLifeycle#stop results in (unnecessary) waiting for the shutdown timeout #33442
- Updates to resource handling for functional endpoints #33434
- Stop logging
resultinWebAsyncManager#33406 - spring native not support method handler with kotlin default value #33384
:lady_beetle: Bug Fixes
- Ensure use of specified status code on redirect with
Rendering#33498 - Inconsistent handling of X-Forwarded-Prefix in servlet and reactive stack #33465
- ServerHttpObservationFilter does not register against new async operations #33451
- Revert removal of deprecated rawStatusCode methods #33440
- PathMatchingResourcePatternResolver no longer follows symlinks #33424
- Deadlock between SseEmitter and StandardServletAsyncWebRequest when clients disconnect #33421
- RestClient doesn't open a scope for the processing of the request #33397
- WebTestClient leaks when ParameterizedTypeReference is used #33389
📔 Documentation
- Document fixed rate scheduling with CRaC #33490
- Update information in SpEL Evaluation chapter in reference manual #33456
- Stop documenting use of
-debugcompiler flag in reference manual #33453 - Use discrete headings instead of titled blocks in reference manual #33447
- Fix example for
@ImportResourcein the reference manual #33446 - Fix a typo in the CDS documentation #33437
- Fix link to chapter introduction #33417
- Improve documentation on reading form data via Servlet request parameters vs
@RequestBody#33409
🔨 Dependency Upgrades
- Upgrade to Kotlin 1.9.25 #33471
- Upgrade to Micrometer 1.12.10 #33518
- Upgrade to Objenesis 3.4 #33526
- Upgrade to Reactor 2023.0.10 #33519
❤ Contributors
Thank you to all the contributors who worked on this release:
@dancer1325, @izeye, and @yfoel
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.