Skip to content

fix(deps): update spring core to v6.2.2

Perun-GitLab Service Account requested to merge renovate/spring-core into main

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 @FunctionalInterface declaration from BeanOverrideProcessor #​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 @MockitoBean at 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
  • @TestBean factory method resolution is incorrect within class hierarchy #​34204
  • Bean Override in superclass takes precedence over Bean Override in subclass #​34194
  • Ensure AsyncListener#onError does 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
  • DataBinder throws IndexOutOfBoundsException when 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
  • DataBinder throws StringIndexOutOfBoundsException for 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 MethodHandle function reference accepting only varargs #​34109
  • Generic with a base type is no longer resolved to its base if the generic is unresolved #​34086
  • DataBinder throws StringIndexOutOfBoundsException for 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() in TestBeanOverrideHandler #​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 @Contract annotation to ObjectUtils#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 @Fallback semantics for Test Bean Overrides #​33924
  • AdvisedSupport.MethodCacheKey should check for logical equality as well as identity #​33915
  • Fail with full description for XML diff in XmlExpectationsHelper #​33827
  • MapMethodProcessor should 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 @Scheduled annotation #​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
  • @MockitoBean incorrectly 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 IntroductionInterceptor but without target always throws an exception #​33985
  • ApplicationListener no longer invoked for generic ApplicationEvent with 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
  • @Value cases 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
  • MockReset strategy is no longer honored for @MockitoBean and @MockitoSpyBean #​33941
  • TypeDescriptor with recursive generics triggers infinite recursion in ResolvableType.equals/hashCode #​33932
  • RestClient does not expose full URI template as attribute #​33928
  • Bean Overrides like @MockitoBean and @TestBean should not be allowed on static fields #​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 @Contract Javadoc to mention this and new return values #​33849
  • AOT processing for bean validation does not consider cascaded and container element constraints #​33842
  • Avoid repeated resolving of singleton beans through @Lazy proxy #​33841
  • Regiser runtime hints for @TestBean fully-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 pure attribute from @Contract #​33820
  • Introduce @CheckReturnValue annotation #​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
  • HttpServiceProxyFactory should omit optional @RequestParam if converted from null to 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
  • MockReset should be honored without @Mockito[Spy]Bean fields #​33829
  • Test Bean Overrides do not honor @Primary semantics #​33819
  • Bean Overrides cannot reliably override beans created by a FactoryBean with generics #​33811
  • Bean Overrides for certain FactoryBean use cases no longer work #​33800
  • @MockitoBean, @MockitoSpyBean, & @TestBean do not work with @DirtiesContext "before method" modes #​33783
  • Deprecate exchangeTimeout and refactor readTimeout in ReactorClientHttpRequestFactory #​33782
📔 Documentation
  • Revise documentation for SpEL PropertyAccessor and IndexAccessor APIs 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

  • Fix a typo in the filters documentation #​33971
  • SpEL documentation contains syntax errors #​33908

🔨 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 Cache from CacheManager #​33813
  • Rename aopAvailable constants in TransactionSynchronizationUtils for 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 SpelParseException for unsupported character in SpelExpressionParser #​33767
  • DefaultMessageListenerContainer reports incorrect jms.process.message count #​33758
  • Autowiring fails if multiple non-highest @Priority beans 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-Disposition header are not cleaned from temp folder (skipped by StandardServletMultipartResolver) #​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
  • @Async documentation 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 allowEagerInit parameter in getBeanNamesForType() #​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 MethodArgumentTypeMismatchException error 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 in KotlinDelegate.hasDefaultValue() #​33609
  • Missing native image hints for JDK proxies created by JMS connection factories #​33590
  • AotTestExecutionListener should not be invoked for a @DisabledInAotMode test class #​33589
  • Use encoded resource path instead of input path validation in spring-webflux #​33568
  • org.springframework.util.ResourceUtils#toRelativeURL drops custom URLStreamHandler #​33561
  • Current observation not in scope during WebClient ExchangeFilterFunction execution #​33559
  • ZoneIdEditor throws wrong exception type for TypeConverterSupport #​33545
  • MimeMessageHelper addInline with ByteArrayResource fail with null filename #​33527
  • @Cacheable throws NullPointerException when RuntimeException is thrown inside annotated code #​33492
  • Path variable values missing in RedirectView when PathPattern are used #​33422
  • Reactive HttpComponentsClientHttpResponse ignores Expires cookie 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
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 result in WebAsyncManager #​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 -debug compiler flag in reference manual #​33453
  • Use discrete headings instead of titled blocks in reference manual #​33447
  • Fix example for @ImportResource in 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
Contributors

Thank you to all the contributors who worked on this release:

@​dancer1325, @​izeye, and @​yfoel


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about these updates again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by Perun-GitLab Service Account

Merge request reports

Loading