Releases: spring-projects/spring-framework
Releases · spring-projects/spring-framework
4.2 RC3 Release
⭐ New Features
- Allow Collection Selection/Projection to be applied to instances of Iterable [SPR-13231] #17822
- SimpleClientHttpRequestFactory: headers with null values should be sent as empty Strings [SPR-13225] #17816
- Allow customizing DispatcherServlet in AbstractDispatcherServletInitializer [SPR-13222] #17813
- JaxbMarshaller scan should skip annotated interfaces [SPR-13221] #17812
- JdbcTemplate.queryForObject(sql, .class) produces TypeMismatchDataAccessException [SPR-13220] #17811
- Support single quotes nested in double quotes in SQL scripts [SPR-13218] #17809
- BeanPropertyRowMapper should always call toLowerCase with US encoding [SPR-13216] #17807
- As of Jackson 2.6 the module class supporting the java.time (java8) package has changed [SPR-13212] #17804
- TomcatInstrumentableClassLoader should support Tomcat 7.0.63+ as well [SPR-13210] #17802
- ResourceBundleThemeSource could expose the property fallbackToSystemLocale of ResourceBundleMessageSource [SPR-13209] #17801
- Make RedirectViews use RESPONSE_STATUS_ATTRIBUTE as a response status if defined [SPR-13208] #17800
- Avoid rejecting same origin requests detected as CORS requests [SPR-13206] #17798
- LinkedMultiValueMap should allow for deep copy of List values [SPR-13201] #17793
- CommonsMultipartResolver should support setFileSizeMax [SPR-13200] #17792
- Support HandlerMethod parameter in
@MessageExceptionHandler
[SPR-13196] #17788 - Add an Access-Control-Request-Method check for CORS preflight requests [SPR-13193] #17785
- Add a CORS Filter [SPR-13192] #17784
- DelegatingFilterProxy should be aware of FrameworkServlet's WebApplicationContext [SPR-13191] #17783
- Unresolvable class in 'basePackageClasses' annotation attribute results in misleading and hard to diagnose error [SPR-13177] #17769
- Add
@EventListener
value() support for event class literals [SPR-13156] #17747 - ScriptTemplateView configuration option for JavaScript concurrency issues [SPR-13034] #17626
- Reduce BeanDefinition cloning in AbstractBeanFactory.getMergedBeanDefinition [SPR-12236] #16851
- MultipartFile interface should extend InputStreamSource [SPR-11861] #16480
🪲 Bug Fixes
- SseEmitter is not thread safe [SPR-13224] #17815
- ResponseBodyEmitter skips same messages during initialization [SPR-13223] #17814
- Populate RequestAttributes before invoking FilterChain in MockMvc [SPR-13217] #17808
- WebContentGenerator not backwards compatible [SPR-13207] #17799
- NullPointerException possible in DefaultSubscriptionRegistry [SPR-13204] #17796
- BEFORE_* modes in
@DirtiesContext
cause context to be closed before test [SPR-13180] #17772 - Binary data in POST multipart request is unmarshalled incorrectly [SPR-13096] #17687
📔 Documentation
- Improve documentation on limitations of Spring MVC Test [SPR-13169] #17760
- Improve DispatcherServlet diagrams [SPR-13120] #17711
- Improve Documentation about when use BindingAwareModelMap and ExtendedModelMap [SPR-12896] #17495
- Document
@Bean
definitions via default methods [SPR-12882] #17480 - Improve Reference Documentation about Spring WebSocket [SPR-12579] #17180
- Document method visibility rules for
@Bean
methods [SPR-12345] #16950 - Document autowiring of javax.validation.Validator with use of
@EnableWebMvc
[SPR-12194] #16808 - Improve documentation for
@IfProfileValue
precedence [SPR-11902] #16521 - Documentation should mention
@Primary
[SPR-7301] #11960
4.2 RC2 Release
⭐ New Features
- Avoid reading (empty) RequestBody for HTTP methods that aren't expected to have a body [SPR-13176] #17768
- Introduce logging support for MvcResult details in the Spring MVC Test framework [SPR-13171] #17762
- Print cookies in human-readable form in Spring MVC Test [SPR-13168] #17759
- Allow MVC handler methods to return any CharSequence type as view name [SPR-13165] #17756
- Support inlined statements in
@Sql
in the TestContext framework [SPR-13159] #17750 - Allow multiple destination per
@JmsListener
[SPR-13147] #17738 - Add an easy way to configure custom StompSubProtocolErrorHandler for StompSubProtocolHandler. [SPR-13142] #17733
- Support for Jetty 9.3 [SPR-13140] #17731
- Status 406 "Not Accepted" is not appropriate when no message converter can handle return type [SPR-13135] #17726
- Allow body of JmsListener annotated method to define returned Message Destination [SPR-13133] #17724
- Support CompletableFuture<> as return type of
@Async
methods [SPR-13128] #17719 - HttpComponentsAsyncClientHttpRequestFactory overrides default request config of httpclient [SPR-13125] #17716
- 400 Bad Request for missing URI template variable is incorrect [SPR-13121] #17712
- Introduce general purpose isEmpty() method in ObjectUtils [SPR-13119] #17710
- Add request timeout to ResponseBodyEmitter [SPR-13104] #17695
- Improve circular import exception, in particular for
@Import
vs import through nesting [SPR-13101] #17692 - Spring does not log deserialization / marshalling errors to the console [SPR-13100] #17691
- Prevent class/classloader retention in GenericConversionService [SPR-13099] #17690
- Reduce memory consumption for caches [SPR-13093] #17684
- Allow annotation to be synthesized from a map with minimal attributes [SPR-13087] #17678
- Transaction Scope [SPR-13085] #17676
- Custom async HandlerMethodReturnValueHandler should work with
@ResponseBody
[SPR-13083] #17674 - Introduce synthesized annotation alternative to getAnnotationAttributes() in AnnotatedElementUtils [SPR-13082] #17673
- Performing an asyncDispatch with MockMvc fails if DeferredResult is not yet set [SPR-13079] #17670
- AsyncResult implementation does not allow for throwing ExecutionException [SPR-13076] #17668
- Support retrieval of nested annotations in AnnotationAttributes [SPR-13074] #17666
- Document public API in AnnotationAttributes [SPR-13072] #17664
- Improve generics matching of ApplicationEvent subtypes with generic payload parameter [SPR-13069] #17661
- Introduce support for synthesizing AnnotationAttributes into an annotation [SPR-13067] #17659
- CORS global configuration support in XML namespace [SPR-13046] #17638
- Base64 support option without Commons Codec dependency on Java 6/7 [SPR-12938] #17531
- Make
@ResponseBody
method return type available to message converters [SPR-12811] #17408 - Maintain original ordering of active profiles in the TestContext framework [SPR-12492] #17098
- UriComponentsBuilder#fromHttpRequest should consider RFC-7239 Forwarded headers [SPR-11856] #16475
- Introduce a comprehensive programming model for meta-annotation support [SPR-11511] #16136
- Introduce aliases for 'value' annotation attributes [SPR-11393] #16020
🪲 Bug Fixes
- Type aware canWrite() method should be called for GenericHttpMessageConverter [SPR-13161] #17752
- MimeType must use case insensitive comparisons for Charsets [SPR-13157] #17748
- Stomp version 1.1 and 1.2 allows headers with empty values [SPR-13111] #17702
- Fix combining class and method level
@CrossOrigin
attributes [SPR-13097] #17688 - CGLIB code generation failure for cross-
@Bean
FactoryBean call [SPR-13095] #17686 - ServletWebRequest.checkNotModified(…) writes Last-Modified header in invalid format [SPR-13090] #17681
- AnnotationUtils.getRepeatableAnnotation() swallows AnnotationConfigurationException [SPR-13084] #17675
- Server Sent Events use "event" as the type prefix [SPR-13080] #17671
- Nested arrays of annotations are synthesized with wrong component type [SPR-13077] #17669
- AnnotationUtils breaks contract for
@Repeatable
annotations [SPR-13068] #17660 - XpathResultMatchers ignores character encoding of XML document [SPR-12676] #17275
📔 Documentation
4.1.7 Release
⭐ New Features
- Avoid reflection for creating StandardServletAsyncWebRequest [SPR-13112] #17703
- Provide means to opt out of default annotation based transaction management by bean [SPR-13109] #17700
- Make PropertyMatches public [SPR-13054] #17646
- mvc:resources does not handles directories well [SPR-12999] #17591
- Same Origin check in both AbstractSockJSService and OriginHandshakeInterceptor is not working with Tyrus client [SPR-12956] #17548
- MethodJmsListenerEndpoint does not set the DestinationResolver on the MessagingMessageListenerAdapter [SPR-12927] #17520
- Use higher log level in InvocableHandlerMethod.getMethodArgumentValues() [SPR-12925] #17518
- Spring logs FactoryBean type check warning in case of factory method with arguments [SPR-12900] #17499
- AnnotatedElementUtils should leniently ignore TypeNotPresentExceptions (just like AnnotationUtils) [SPR-12889] #17487
- Support package private annotations with AnnotationUtils [SPR-12858] #17456
@Aspect
aspect not correctly applied to Java 8 lambda-defined@Beans
[SPR-11807] #16427
🪲 Bug Fixes
- YAML Processor leaves StreamDecoder open [SPR-13173] #17765
- GzipResourceResolver has NullPointerException when used with VersionResourceResolver [SPR-13149] #17740
- AntPathMatcher throws StringIndexOutOfBoundsException [SPR-13139] #17730
- XML input vulnerability based on DTD declaration [SPR-13136] #17727
- ObjenesisCglibAopProxy's fallback mode triggers duplicate class definition error [SPR-13131] #17722
- FileNotFoundException when implementing a nested interface with groovy closure in a
@Component
[SPR-13115] #17706 - When use a
@args
as pointcut, there is case that occur a NPE at calling the unrelated method [SPR-13102] #17693 - Configuration class parsing may trigger NoClassDefFoundError for nested classes [SPR-13091] #17682
- H4 SpringSessionSynchronization#beforeCompletion leaves irreparably broken state if exception thrown in session.disconnect() [SPR-13089] #17680
- Wrong IllegalStateException for
@Cacheable
without a cache name [SPR-13081] #17672 - DefaultMockMvcBuilder combined with
@ContextHierarchy
registers wrong context as ROOT [SPR-13075] #17667 - ByteBuffer corrupted by ByteBufferConverter when passed through Spring [SPR-13056] #17648
- Remoting over JMS with receiveTimeout blocks service forever [SPR-13052] #17644
- NPE in PropertyOrFieldReference due to concurrency issue when caching SpelExpression objects [SPR-13023] #17614
- Validation of frame content in org.springframework.web.socket.sockjs.frame.SockJsFrame is a NoOp [SPR-13019] #17610
- StringIndexOutOfBoundsException in ResourceUrlEncodingFilter [SPR-13018] #17609
- NPE for alias resolved to null in SimpleAliasRegistry [SPR-13016] #17607
- Commons FileUpload failed after Spring framework upgrade [SPR-13014] #17605
- CustomBooleanEditor may run into NPE when configured with allowEmpty=false [SPR-13010] #17601
- ContentCachingResponseWrapper should NOT sendError() before write body [SPR-13004] #17596
- RequestMapping maps root-controller handler methods with double slashes [SPR-12975] #17566
- PatternMatchUtils infinite loop bug [SPR-12971] #17563
- Regression: DLL handled as classpath resource [SPR-12928] #17521
- ResponseEntity's #equals fails symmetric property. [SPR-12910] #17509
- Async Execution Aspect compiler error when using ListenableFuture [SPR-12895] #17494
- CachingResourceResolver + GzipResourceResolver caches different results depending on what is requested first [SPR-12892] #17491
- Regression in handling of String passed as Types.OTHER to JdbcTemplate [SPR-12890] #17488
- client-library-url in sockjs config is not working [SPR-12874] #17472
- CronSequenceGenerator constructor goes into infinite loop with invalid increments [SPR-12871] #17469
- Incorrect value in InvalidPropertyException message from BeanWrapperImpl.setPropertyValue [SPR-12866] #17464
- Netty4ClientHttpRequest ignores query parameters [SPR-12779] #17377
📔 Documentation
3.2.14 Release
🪲 Bug Fixes
@Scheduled
no longer works in case of multiple proxied target classes implementing the same interface [SPR-12709] #17306- ServletUriComponentsBuilder#initFromRequest can cause NPE [SPR-12723] #17320
- Deadlock publishing event while creating listener bean [SPR-12739] #17336
- Specified MVC resource at root level not considered "under location" [SPR-12747] #17344
- EncodedResource does not include charset in equals() implementation [SPR-12767] #17364
- StandardMultipartHttpServletRequest.StandardMultipartFile not serializable [SPR-12795] #17392
- Incorrect value in InvalidPropertyException message from BeanWrapperImpl.setPropertyValue [SPR-12866] #17464
- CronSequenceGenerator constructor goes into infinite loop with invalid increments [SPR-12871] #17469
- PatternMatchUtils infinite loop bug [SPR-12971] #17563
- CustomBooleanEditor may run into NPE when configured with allowEmpty=false [SPR-13010] #17601
- NPE for alias resolved to null in SimpleAliasRegistry [SPR-13016] #17607
- Remoting over JMS with receiveTimeout blocks service forever [SPR-13052] #17644
- When use a
@args
as pointcut, there is case that occur a NPE at calling the unrelated method [SPR-13102] #17693 - XML input vulnerability based on DTD declaration [SPR-13136] #17727
- SpEL chooses wrong method to invoke when varargs method is present [SPR-12803] #17400
📔 Documentation
4.2 RC1 Release
⭐ New Features
@SendTo
does not get converter applied when returning Message [SPR-13124] #17715- Implement hashCode() for synthesized annotations [SPR-13066] #17658
- Implement equals() for synthesized annotations [SPR-13065] #17657
- Implement toString() for synthesized annotations [SPR-13064] #17656
- Introduce putIfAbsent() in AnnotationAttributes [SPR-13060] #17652
- No possible matches for invalid field access in DirectFieldAccessor [SPR-13053] #17645
- mvcUrl is always rendering scheme+host+port, that should be optional only when absolute link is needed [SPR-13045] #17637
- DataBinder should use ConversionService if PropertyEditor cannot produce required type [SPR-13042] #17634
- Ability to prefix each RestTemplate request using some kind of UriPrefixingClientHttpRequestFactory [SPR-13035] #17627
- LocaleChangeInterceptor not protected against CSRF [SPR-13032] #17624
- Document "present" terminology in AnnotationUtils [SPR-13030] #17623
- Provide access to the return type in MethodMetadata [SPR-13024] #17615
- Destroy callback cannot be disabled for AutoCloseable beans [SPR-13022] #17613
- Harmonize default converters with available editors [SPR-13020] #17611
- Avoid eager error message formatting in pre-condition checks [SPR-13007] #17599
- Introduce AopTestUtils in spring-test [SPR-13005] #17597
- Eliminate inspection of meta-annotations on Java annotations [SPR-12989] #17580
- NoHandlerFoundException message should not contain all headers [SPR-12984] #17575
- Automatically register Jackson's JDK 8 module when available [SPR-12983] #17574
- ShallowEtagHeaderFilter breaks SockJS and HTTP streaming async responses [SPR-12960] #17552
- Using StandardWebSocketClient it's not possible to customize ClientEndpointConfig before it's passed to WebSocketContainer.connectToServer method [SPR-12955] #17547
- Default RequestPostProcessor should be executed first [SPR-12945] #17538
- Autowiring against a closed ApplicationContext should consistently fail [SPR-12932] #17525
- Spring Performance Optimization, Comparing Classes [SPR-12926] #17519
- Allow for marshalling the messaging Message payload with an user defined marshaller [SPR-12912] #17511
- Configure reply type via JmsListenerContainerFactory [SPR-12911] #17510
@Configuration
enhancer does not throw proper exception in case of mismatched@Bean
method [SPR-12905] #17504- MVC should respect
@ResponseStatus
on exceptions during mapping [SPR-12903] #17502 - Revisit "ApplicationEventMulticaster not initialized" behavior for early event publication scenarios [SPR-12902] #17501
- Support expression in
@SendTo
for JMS endpoints [SPR-12899] #17498 - Improve exception message in case of incomplete Caching configuration. [SPR-12898] #17497
- ResourceHttpMessageConverter always returns "application/octet-stream" Content-Type [SPR-12894] #17493
- OkHttp implementations of ClientHttpRequestFactory / AsyncClientHttpRequestFactory [SPR-12893] #17492
- Better exception message for missing
@RequestBody
method parameter [SPR-12888] #17486 - Support 'selector' header for subscriptions with SimpleBrokerMessageHandler [SPR-12884] #17482
- Support injecting resource as Reader [SPR-12876] #17474
- Improve handling of JDK dynamic proxies in DefaultAopProxyFactory. [SPR-12870] #17468
- CookieGenerator.removeCookie doesnt support secure field [SPR-12865] #17463
- MethodValidationPostProcessor could be more open to extension [SPR-12863] #17461
- Indeterministic UnsatisfiedServletRequestParameterException#paramConditions [SPR-12854] #17452
- Provide Access to Spring WebSocket's Configured PathMatcher [SPR-12845] #17443
- add support of xlsx format to JasperReportsMultiFormatView [SPR-12843] #17441
- HttpSessionHandshakeInterceptor's getSession(request) [SPR-12840] #17438
- Introduce database-name attribute in <jdbc:embedded-database /> [SPR-12835] #17432
- Allow <jdbc:embedded-database /> to be declared as an anonymous bean [SPR-12834] #17431
- HTTP Streaming Directly to the OutputStream [SPR-12831] #17428
- HttpComponentsClientHttpRequestFactory should not depend on CloseableHttpClient [SPR-12826] #17423
- Add setAutoStartup(boolean) to AbstractJmsListenerContainerFactory [SPR-12824] #17421
- Make ReflectionUtils.doWithMethods work on Java 8 default interface methods [SPR-12822] #17419
- On CONNECT and external broker is not available, StompBrokerRelayMessageHandler should return ERROR frame [SPR-12820] #17417
- Support a customizable FieldError creation at SpringValidatorAdapter [SPR-12819] #17416
- Provide an option for trailing slash for AbstractUrlHandlerMapping like RequestMappingHandlerMapping [SPR-12818] #17415
- Support SpEL in bean class names [SPR-12817] #17414
- SubProtocolWebSocketHandler should check is session is open before adding it to its map [SPR-12812] #17409
- SpEL's ReflectiveMethodResolver should use distance computation by default [SPR-12808] #17405
@Order
annotations not consistently honored within DispatcherServlet and other parts of the framework [SPR-12806] #17403- Make initDirectFieldAccess work with array, List and Map [SPR-12805] #17402
- Support for named parameters in SimpleJdbcCall [SPR-12801] #17398
- Allow use of MvcUriComponentsBuilder independent of Servlet request lifecycle [SPR-12800] #17397
- Support for Transport connectivity check in JavaMailSender [SPR-12799] #17396
- TypeDescriptor should support arbitrary levels of meta-annotations [SPR-12793] #17390
- SpEL: reduce restrictions on compiling mathematical expressions [SPR-12789] #17386
- UrlTag mishandles foreign root context URIs [SPR-12782] #17380
- Re-allow handling empty request body [SPR-12778] [#17376](https://github.com/spring-projects/spring-fr...
4.1.6 Release
⭐ New Features
- TcpConnection should extend java.io.Closeable [SPR-12849] #17447
- Ignore null in HeadersBuilder#headers [SPR-12792] #17389
- RestTemplate logging for 404 status code [SPR-12760] #17357
- Support
@NumberFormat
as a meta-annotation [SPR-12743] #17340
🪲 Bug Fixes
- Exception cache resolver shouldn't be mandatory [SPR-12850] #17448
- CacheLoader is ignored as of Guava 11 [SPR-12842] #17440
- ConcurrentModificationException in ConfigurationClassParser.processDeferredImportSelectors [SPR-12838] #17436
- There is no spring-beans.dtd file inside of the spring-beans-4.1.5.RELEASE jar [SPR-12836] #17433
- Thread contention in HandlerMethod due to unnecessary BeanFactory.getType call [SPR-12832] #17429
- DefaultManagedAwareThreadFactory's non-JNDI fallback leads to StackOverflowError [SPR-12830] #17427
- X-Forwarded-Proto with comma separated list causes incorrect scheme [SPR-12816] #17413
- X-Forwarded-Port with Comma Separated List Not Able to be Parsed in Spring 4.1.x [SPR-12813] #17410
- Not reusable input stream in ContentCachingRequestWrapper [SPR-12810] #17407
- Exception not thrown by OnFailure() when using ListenableFutureCallback [SPR-12797] #17394
- StandardMultipartHttpServletRequest.StandardMultipartFile not serializable [SPR-12795] #17392
- Regression in 4.1: UnsatisfiedDependencyException because a prototype-scoped FactoryBean is unexpectedly instantiated by getTypeForFactoryBean() [SPR-12786] #17383
- ObjectToOptionalConverter wraps a source Optional<?> to the new one [SPR-12785] #17382
- LoadTimeWeavingConfiguration should not rely on private field injection [SPR-12776] #17374
- Regression in 4.1.5: UriComponentsBuilder.fromHttpRequest sets port to 80 i.s.o nothing/443 [SPR-12771] #17368
- GroovyBeanDefinitionReader does not fully support XML config files [SPR-12769] #17366
- XML config isn't fully supported for web integration tests if Groovy is on the classpath [SPR-12768] #17365
- EncodedResource does not include charset in equals() implementation [SPR-12767] #17364
- ScriptUtils and ScriptStatementFailedException confuse lines and statements [SPR-12752] #17349
- Specified MVC resource at root level not considered "under location" [SPR-12747] #17344
- Regression in 4.1.5: Alternative
@Bean
declarations with same primary bean name do not work anymore [SPR-12744] #17341 - Deadlock publishing event while creating listener bean [SPR-12739] #17336
- MockMvc PrintResultHandler asserts before result is set [SPR-12735] #17332
📔 Documentation
- Consider rewording ack modes on the listener container javadocs [SPR-12705] #17302
4.1.5 Release
⭐ New Features
- MessageHeaderAccessor.getContentType() should get deal with String value too, rather than rely only casting to MimeType [SPR-12730] #17327
- Add possibility to set supportedMimeTypes in MappingJackson2MessageConverter [SPR-12724] #17321
- Open up TestPropertySourceUtils for public consumption [SPR-12721] #17318
- Preserve ordering of inlined properties in
@TestPropertySource
[SPR-12710] #17307 - BeanWrapper should auto-grow arrays on indexed set attempt as well [SPR-12706] #17303
- Add same origin support to SockJS and WebSocket [SPR-12697] #17294
- Allow MBeanExporter's excludedBeans to be configured additively [SPR-12686] #17285
- Change SockJS default to allowing same origin only [SPR-12685] #17284
- Allow YamlProcessor subclasses to provide the Yaml instance that's used [SPR-12671] #17270
- Support
@Configuration
as a meta-annotation in the TestContext framework [SPR-12659] #17259 - Use UUID.randomUUID() for session id's in SockJsClient [SPR-12658] #17258
- Add the ability to turn off automatic derivation of Aliases for custom parsers. [SPR-12643] #17244
- Allow Jackson2ObjectMapperBuilder configuration to override the well-known modules' configuration [SPR-12634] #17235
- ResourceUrlEncodingFilter fails when Thymeleaf and the "/**" resource pattern is used [SPR-12630] #17231
- Enable reuse of DefaultActiveProfilesResolver [SPR-12611] #17212
- Consider caching the compiled pattern in OperatorMatches [SPR-12610] #17211
- AbstractRequestLoggingFilter and CommonsRequestLoggingFilter log level checks [SPR-12609] #17210
- Don't use Exception for normal behavior in org.springframework.core.annotation.AnnotationUtils.getValue [SPR-12604] #17205
- Support specifying TimeZone in Jackson2ObjectMapperFactoryBean [SPR-12594] #17195
- RestTemplate - support response mapping to entity with potentially empty response body. [SPR-8016] #12671
- AbstractRequestLoggingFilter should log actual body even after consuming request parameters on Tomcat 6 [SPR-7913] #12568
🪲 Bug Fixes
- Stomp error when PongMessage is passed to StompSubProtocolHandler [SPR-12728] #17325
- Unhandled websocket error when unsolicited pong frame with zero length payload received from IE11 [SPR-12727] #17324
- ServletUriComponentsBuilder#initFromRequest can cause NPE [SPR-12723] #17320
- WebSocketTransportHandler passes Collections.<String, Object>emptyMap() to HandshakeHandler [SPR-12716] #17313
@Scheduled
no longer works in case of multiple proxied target classes implementing the same interface [SPR-12709] #17306- Conditions on an overriding bean method effectively get ignored [SPR-12694] #17292
- ConcurrentModificationException thrown while iterating over bean definition names in DefaultListableBeanFactory#getBeansWithAnnotation(Class<? extends Annotation> annotationType) [SPR-12688] #17286
- ConcurrentModificationException in SimpleBrokerMessageHandler [SPR-12665] #17264
- AbstractSockJsService.checkAndAddCorsHeaders fails for same origin requests when setAllowedOrigins is set [SPR-12660] #17260
- ResourceUrlProvider does not keep resource handlers ordered [SPR-12647] #17248
- During startup scheduled tasks are driven earlier than before causing problems with Spring Batch [SPR-12641] #17242
- CssLinkResourceTransformer throws Exception on links that start with // [SPR-12632] #17233
- PathResourceResolver.isResourceUnderLocation does not handle relative paths correctly [SPR-12624] #17225
- Netty4ClientHttpRequestFactory always allocates "maxRequestSize" bytes for each request [SPR-12623] #17224
- Exception with JSON serialization in ResponseBodyAdviceChain when debug logging is on [SPR-12616] #17217
- Handle exceptions properly in SpringJUnit4ClassRunner [SPR-12613] #17214
- Default value of mvc:redirect-view-controller context-relative attribute is not "true" [SPR-12607] #17208
- ResourceUrlProvider should initialize only once [SPR-12592] #17193
- ObjectToOptionalConverter should use Optional.ofNullable(…) instead of Optional.of(…) [SPR-12589] #17190
- Regression in TransactionAspectSupport.determineTransactionManager(…) [SPR-12577] #17178
📔 Documentation
- Documentation error in "SimpleJdbcInsert" section [SPR-12639] #17240
4.1.4 Release
⭐ New Features
- Spring's JMX support can rely on native MXBean detection on Java 6+ [SPR-12574] #17175
- Improve diagnostics when AnnotationJmxAttributeSource triggers an ArrayStoreException from Class.getAnnotation [SPR-12572] #17173
- org.springframework.cache.aspectj.JCacheCacheAspect is missing from META-INF/aop.xml in spring-aspects [SPR-12571] #17172
- PayloadArgumentResolver enforces Validator unnecessarily [SPR-12567] #17168
- MockMvcBuilders should populate ServletContextAttribute WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE to enable view technologies use WebApplicationContextUtils.getRequiredWebApplicationContext(…) [SPR-12553] #17155
- Configured RequestConfig in HttpClient gets overwritten by default [SPR-12540] #17144
- Better implementation of showSql for EclipseLinkJpaVendorAdapter [SPR-12528] #17133
- CacheAspectSupport 's generateKey method should not concatenate Strings [SPR-12527] #17132
- Add DEBUG/INFO logging in AbstractBeanFactory.registerScope() [SPR-12519] #17124
- Allow sending of binary WebSocket messages in StompSubProtocolHandler [SPR-12475] #17081
- Improve Constructor Resolver Diagnostics [SPR-12543] #16975
- Upgrade HttpComponentsHttpInvokerRequestExecutor to require Apache HttpComponents 4.3 [SPR-11113] #15739
🪲 Bug Fixes
- Wrong TransactionManager selected when mixing
@Transactional
with and w/o qualifier [SPR-12606] #17207 - Duplicated interceptors in HandlerExecutionChain after intermediate getInterceptors() call [SPR-12566] #17167
- VerifyError for compiled SpEL expression with primitive/reference type mix when using == [SPR-12557] #17159
- AbstractApplicationEventMulticaster "lost" application listener [SPR-12545] #17148
@SessionAttributes
not populated when going directly to POST and redirecting while ignoreDefaultModelOnRedirect=true [SPR-12542] #17146@Transactional
qualifier is ignored by TransactionAspectSupport if default transaction manager is set [SPR-12541] #17145- Performance - hashCode method of AbstractFallbackTransactionAttributeSource.DefaultCacheKey doesn't take targetClass into account [SPR-12536] #17141
- CollectionFactory should create empty EnumSets and EnumMaps [SPR-12533] #17138
@EnableMBeanExport
exposes scoped proxies and their targets [SPR-12529] #17134- Prototype with changing bean class does not get populated with dependencies after type switch [SPR-12526] #17131
- Regression: SpEL expression with Arrays.asList and empty array [SPR-12522] #17127
- AnnotationTransactionAspect retains reference to JpaTransactionManager from closed context [SPR-12518] #17123
- HttpComponentsClientHttpRequestFactory does not set connection request timeout on request config [SPR-12166] #16780
📔 Documentation
- Add TimeZone and ZoneId to list of supported method arguments [SPR-12575] #17176
- Update documentation after SPR-3542 [SPR-12570] #17171
- Add note to reference material about difference between XML destroy-method and
@Bean
destroyMethod behavior [SPR-12534] #17139 - I can use ';' and EOL for delimiter of base-package attribute(component scan) [SPR-12523] #17128
- Names of Maven Dependencies [SPR-12517] #17122
4.0.9 Release
⭐ New Features
- Concurrent registration/iteration in PropertySourcesPropertyResolver [SPR-12428] #17034
- Making it easier to replace "RequestMappingHandlerAdapter.handleInternal" [SPR-12460] #17065
- NotReadablePropertyException should take causing exception as constructor argument [SPR-12467] #17073
- Allow overriding InvocableHandlerMethod.invoke and/or ServletInvocableHandlerMethod.invokeAndHandle in subclasses [SPR-12484] #17090
- Consistent bridge method handling in annotation post-processors [SPR-12495] #17101
- Check the user for a SockJS request [SPR-12497] #17103
- CacheAspectSupport 's generateKey method should not concatenate Strings [SPR-12527] #17132
- PayloadArgumentResolver enforces Validator unnecessarily [SPR-12567] #17168
- Improve diagnostics when AnnotationJmxAttributeSource triggers an ArrayStoreException from Class.getAnnotation [SPR-12572] #17173
- Spring's JMX support can rely on native MXBean detection on Java 6+ [SPR-12574] #17175
🪲 Bug Fixes
- Using TransactionManagementConfigurer causes StackOverflowError that results in NoClassDefFoundError for FatalBeanException [SPR-10787] #15413
- webjar stops working [SPR-12432] #17038
- Introspection with BeanUtils started failing against java.awt.Window [SPR-12434] #17039
- NPE in org.springframework.core.MethodParameter.getParameterName (possible race condition) [SPR-12453] #17058
- Unable to initialize WebAsyncTask with executorName [SPR-12457] #17062
- AnnotationAttributesReadingVisitor.doVisitEnd doesn't handle possible null return from AnnotationUtils.getAnnotations [SPR-12493] #17099
- SpEL: problem with static methods conflicting with instance methods [SPR-12502] #17107
- Base packages referenced from
@ControllerAdvice
must contain at least one Controller [SPR-12506] #17111 - Synchronize message sending in HTTP SockJS sessions with request initialization [SPR-12516] #17121
- Prototype with changing bean class does not get populated with dependencies after type switch [SPR-12526] #17131
- Performance - hashCode method of AbstractFallbackTransactionAttributeSource.DefaultCacheKey doesn't take targetClass into account [SPR-12536] #17141
- AbstractApplicationEventMulticaster "lost" application listener [SPR-12545] #17148
- Duplicated interceptors in HandlerExecutionChain after intermediate getInterceptors() call [SPR-12566] #17167
📔 Documentation
- Star character interpreted as bold expression in generated documentation [SPR-12456] #17061
- Misleading documentation for SqlRowSet [SPR-12476] #17082
- I can use ';' and EOL for delimiter of base-package attribute(component scan) [SPR-12523] #17128
- Update documentation after SPR-3542 [SPR-12570] #17171
- Add TimeZone and ZoneId to list of supported method arguments [SPR-12575] #17176
3.2.13 Release
⭐ New Features
- Consistent bridge method handling in annotation post-processors [SPR-12495] #17101
🪲 Bug Fixes
- Java 8 bridge method handling can lead to false positive detection of autowired annotations [SPR-12187] #16801
- webjar stops working [SPR-12432] #17038
- Introspection with BeanUtils started failing against java.awt.Window [SPR-12434] #17039
- NPE in org.springframework.core.MethodParameter.getParameterName (possible race condition) [SPR-12453] #17058
- Unable to initialize WebAsyncTask with executorName [SPR-12457] #17062
- SpEL: problem with static methods conflicting with instance methods [SPR-12502] #17107
- Prototype with changing bean class does not get populated with dependencies after type switch [SPR-12526] #17131
- Performance - hashCode method of AbstractFallbackTransactionAttributeSource.DefaultCacheKey doesn't take targetClass into account [SPR-12536] #17141
- AbstractApplicationEventMulticaster "lost" application listener [SPR-12545] #17148
- Duplicated interceptors in HandlerExecutionChain after intermediate getInterceptors() call [SPR-12566] #17167
- When use the same configuration annotation of javaconfig, does not work on spring 3.2.12 [SPR-12442] #17047
- Embedded derby database uses derby.log [SPR-12437] #17042