Releases: spring-projects/spring-framework
Releases · spring-projects/spring-framework
3.2.2 Release
⭐ New Features
- Clarify DefaultLobHandler's applicability to Oracle 10g/11g [SPR-10339] #14973
- Introduce a pre-resolved target type in RootBeanDefinition [SPR-10335] #14969
- The JARs spring-test-3.2.1 and spring-webmvc-3.2.1 contain two MANIFEST.MF [SPR-10324] #14958
- DefaultJdoDialect does not support JDO 2.2 isolation levels [SPR-10323] #14957
- Replace examples using deprecated SimpleJdbcTemplate [SPR-10317] #14951
- Introduce JdbcTestUtils.deleteFromTableWhere method [SPR-10302] #14936
- Ability to set per-session entity interceptors removed from HibernateTransactionManager for Hibernate 4 [SPR-10301] #14935
- Share locale independent properties among several ResourceBundleMessageSources [SPR-10291] #14925
- In AnnotationSessionFactoryBean, be able to specify annotatedPackages and packagesToScan in one property [SPR-10288] #14922
- Log4jWebConfigurer only uses System properties/environment [SPR-10284] #14918
- StandaloneMockMvcBuilder interface is inconsistent [SPR-10279] #14913
- MockMvcBuilders' use of generics doesn't allow for chaining more than 2 calls [SPR-10277] #14911
- Assertion message unclear when expected and actual have same string representation [SPR-10275] #14909
- Resolve SQL errorCode from underlying SQLException [SPR-10260] #14893
- NamedParameterJdbcTemplate and JdbcTemplate: consider deprecating queryFor* methods [SPR-10257] #14890
- NamedParameterJdbcTemplate: add methods to simplify usage when no parameter is needed [SPR-10256] #14889
- No way to ask RealLiteral for original string (to parse into BigDecimal) [SPR-10248] #14881
- Cannot create relative URIs with UriComponents [SPR-10231] #14864
- DefaultMessageListenerContainer should expose an API to determine whether the consumer successfully connected to a topic/queue [SPR-10230] #14863
- Limit auto grow collection size when using SpEL [SPR-10229] #14862
- org.springframework.http.MediaType.parseMediaType should throw a better exception [SPR-10226] #14859
- Update documentation examples for scheduling to use SimpleTriggerFactoryBean instead of SimpleTriggerBean [SPR-10209] #14842
- Cleanup whitespace in *.aj and use AspectJ Annotations to prevent NoSuchMethodErrors [SPR-10208] #14841
@RequestParam
default value not set in certain cases [SPR-10180] #14813- o.s.web.util.JavaScriptUtils.javaScriptEscape insufficiently escapes some characters [SPR-9983] #14617
- Support WebApplicationContext hierarchies in the TestContext Framework [SPR-9863] #14496
- Transparent authentication fails when POSTing to Kerberos web service using the Simple HTTP Client [SPR-9617] #14251
- Reference Documentation needs a chapter on using Gemfire as a CacheManager [SPR-9468] #14103
- SPEL: Error message is useless at helping developer resolve problem actual problem, EL1027E:(pos 4): Indexing into type ... [SPR-8876] #13517
@Cachable
condition should allow referencing return value [SPR-8871] #13512- Hibernate Annotation scanner missing package-info.java [SPR-8589] #13233
- Update for Spring OXM Reference, including changes introduced in CastorMarshaller [SPR-8509] #13155
@PreDestroy
and@PostConstruct
should be mentioned more prominently in container callback section [SPR-8493] #13139- CastorMarshaller - marshaller and unmarshaller properties. [SPR-8470] #13116
@Scheduled
's int attributes do not allow for placeholder values [SPR-8067] #12722- AnnotationSessionFactoryBean packagesToScan does not scan for annotations in package's package-info.java file [SPR-7748] #12404
- Make MappingJacksonJsonView fields protected to make extending it easier [SPR-7619] #12275
- Provide support for context hierarchies in the TestContext Framework [SPR-5613] #10284
- Performance improvement on AbstractCachingViewResolver [SPR-3145] #7831
🪲 Bug Fixes
- Configuration class implementing Provider interface throws StackOverflowError after upgrading to Java 7 [SPR-11830] #16449
- Thread-safety issue in RequestMappingHandlerAdapter causes NPE [SPR-10365] #14997
- UriComponentsBuilder.fromUriString(…) throws exception for empty fragment [SPR-10363] #14995
- SpringCompleteAutoloadTilesContainerFactory disables EL expressions [SPR-10361] #14993
- Scope of model attributes when including JSP [SPR-10360] #14992
- mvc:resources location attribute doesn't guarantee order [SPR-10355] #14987
- SpringValidationAdapter cannot handle disabled default constraint violation [SPR-10345] #14979
- Change in FrameworkServlet makes it impossible to use an alternative WebRequest instance for request processing [SPR-10342] #14976
- doOptions method of FrameworkServlet uses servlet 3.0 only method [SPR-10341] #14975
- MockServletContext always returns application/octet-stream for unknown filetypes or ContentNegotiationManager is not correct [SPR-10334] #14968
- StringToEnumConverterFactory fails to convert enums using classes from values [SPR-10329] #14963
- NPE while parsing an invalid indexer expression [SPR-10328] #14962
- By-type matching caches in DefaultListableBeanFactory should be cleared on registerSingleton [SPR-10326] #14960
- Broken UriComponents.equals() method [SPR-10313] #14947
- LazyConnectionDataSourceProxy causes exception in WebSphere with an Oracle database [SPR-10312] #14946
- Reference documentation declares inner beans being prototypes, which is wrong [SPR-10311] #14945
- AspectJ advisor always positioned behind an "old school" advisor [SPR-10309] #14943
- Invalid format media-type in Content-Type request header results in IllegalArgumentException when no handler matched [SPR-10308] #14942
- ArrayIndexOutOfBoundsException in AbstractAutowireCapableBeanFactory.predictBeanType [SPR-10304] #14938
- java.lang.IllegalStateException: getOutputStream() has already been called for this response [SPR-10293] #14927
- MockMvcRequestBuilders.fileUpload() cannot merge if defaultRequest is set [SPR-10280] #14914
@Async
executor ignored if decla...
3.2.1 Release
⭐ New Features
- distinguish "none found" from "several found" in NoSuchBeanDefinitionException [SPR-10194] #14827
- RequestMappingInfoHandlerMapping.handleNoMatch returns null instead of throwing an exception [SPR-10193] #14826
- Provide a means to ignore the character set in ContentResultMatchers.contentType(MediaType) [SPR-10165] #14798
- EntityManagerFactoryUtils.findEntityManagerFactory() does not search parent contexts if persistence unit name is unspecified [SPR-10160] #14793
- AnnotationAwareOrderComparator does not work on Class objects [SPR-10152] #14785
- Improve documentation regarding which
@MVC
annotations are required on interfaces when proxying [SPR-10132] #14765 - Add support for X-Forwarded-Host in ServletUriComponentsBuilder [SPR-10110] #14743
- Support SpEL in
@initial-delay
for task:scheduled [SPR-10102] #14735 - ContentNegotiationManagerFactoryBean does not provide default value for "parameterName" as stated in doc [SPR-10101] #14734
- Implement support of Jackson2 for MappingJacksonMessageConverter [SPR-10099] #14732
- Support configurable charset for ResourcePropertySource [SPR-10096] #14729
- Support OPTIONS method in the MVC Test framework [SPR-10093] #14726
- Detect split packages at build time [SPR-9990] #14624
- Use parameter names during MBeanInfo assembly [SPR-9985] #14619
- Allow customization of request mappings [SPR-9935] #14568
- ResourcePropertySource cannot load JDK 5 properties xml [SPR-9896] #14529
- Allow TypeDescriptor array construction [SPR-9792] #14425
- Infer "shutdown()" as destroy method for convenient EHCache setup using
@Bean
[SPR-9713] #14347 - AnnotationAwareOrderComparator.sort has very misleading syntax [SPR-9625] #14259
- WebApplicationInitializer with AnnotationConfigWebApplicationContext parent gets reset to null by ContextLoaderListener [SPR-9591] #14225
- Relax jms:listener-container xsd:int attributes to xsd:string in order to allow for SpEL expressions [SPR-9553] #14187
- Improve documentation for validation and data binding [SPR-9437] #14073
- Improve support for registering Validator implementations in Spring MVC [SPR-9436] #14072
- Consistency between scheduling/concurrent factory beans, resulting in inheritance improvement [SPR-9435] #14071
- exposeAccessContext should also be available for JndiRmiClientInterceptor [SPR-9428] #14063
- Update reference documentation on handling 401 response in the RestTemplate [SPR-9367] #14004
- WebContentInterceptor.preHandle(request, response, handler), handler of type HandlerMethod not controller instance [SPR-9248] #13886
- Map "no default value for field" MySQL error code to DataIntegrityViolationException [SPR-9237] #13875
- SpringContextResourceAdapter does not fulfill whole JCA 1.5 contract [SPR-9162] #13800
- Request to switch off heading & trailing whitespaces trim of path segments in AntPathMatcher [SPR-8687] #13329
- Form tag should prepend the contextPath and servletPath if not present [SPR-8684] #13326
- EhCacheCacheManager throws assertion error for ehcache configuration with only default cache configured [SPR-7955] #12610
@Primary
and primary attribute of element are not considered for calls to getBean(Class) [SPR-7854] #12511- BufferedImageHttpMessageConverter not using defaultContentType [SPR-7763] #12419
- Make ResponseStatusExceptionResolver handling of
@ResponseStatus
.reason internationalizable [SPR-6044] #10713 - ThreadPoolExecutor waitForTasksToCompleteOnShutdown doesn't work as expected [SPR-5387] #10060
🪲 Bug Fixes
- MBeanExporter/MBeanRegistrationSupport leaks ObjectNames in registeredBeans [SPR-10957] #15585
- HttpEntityMethodProcessor does not support HttpEntity/ResponseEntity subclasses [SPR-10207] #14840
- Support Date to String in JodaTimeConverters [SPR-10198] #14831
- ClassCastException while using completeAutoload in Tiles 3 [SPR-10195] #14828
- MockHttpServletRequest must not throw an exception on getParameter(null) [SPR-10192] #14825
- FormHttpMessageConverter#writePart NPE on 'partBody.getClass()' [SPR-10187] #14820
- UriComponents break UriTemplate serialization [SPR-10186] #14819
- NoSuchMethodError for Aspects [SPR-10178] #14811
- Attribute mode removed from annotation-driven definition in spring-task.xsd [SPR-10177] #14810
- AbstractMessageConverterMethodProcessor returns allSupportedMediaTypes with HttpMediaTypeNotAcceptableException [SPR-10175] #14808
- RequestMapping fileExtension filling interferes with registration of mapping methods [SPR-10173] #14806
- Consider bridge methods in SpEL properties [SPR-10162] #14795
- spring-aspects is compiled with JDK 1.7 compatibility [SPR-10161] #14794
- Building 3.2.x branch with Java 7 fails - api depends on asmRepackJar [SPR-10151] #14784
- Improve exceptions for multi-operand expressions [SPR-10146] #14779
- NPE in PersistenceExceptionTranslationPostProcessor when instantiate a
@Configurable
Bean [SPR-10144] #14777 - MatrixVariable values are not decoded [SPR-10140] #14773
- error with tomcat 6 and spring 3.2 [SPR-10139] #14772
- HttpServletBean requires overly narrow Environment type [SPR-10138] #14771
- MessageSourceResourceBundle.containsKey throws NullPointerException [SPR-10136] #14769
- SpEL support for static finals on interfaces [SPR-10125] #14758
- Fix SpEL JavaBean compliance for setters [SPR-10122] #14755
- ContentNegotiatingViewResolver - Upgrade from 3.1 to 3.2 causes ClassCastException [SPR-10119] #14752
- Fix GenericConversionService search algorithm [SPR-10116] #14749
- Regression in static setter method support [SPR-10115] #14748
- Processing java.math.BigDecimal via Spring's ExtendedBeanInfo fails sporadically [SPR-10111] #14744
- JMSTemplate.receive() and receiveSelected() don't use "receiveTimeout" property if in a transactio...
3.1.4 Release
⭐ New Features
- EhCacheCacheManager throws assertion error for ehcache configuration with only default cache configured [SPR-7955] #12610
- SpringContextResourceAdapter does not fulfill whole JCA 1.5 contract [SPR-9162] #13800
- exposeAccessContext should also be available for JndiRmiClientInterceptor [SPR-9428] #14063
- WebApplicationInitializer with AnnotationConfigWebApplicationContext parent gets reset to null by ContextLoaderListener [SPR-9591] #14225
- ResourcePropertySource cannot load JDK 5 properties xml [SPR-9896] #14529
- Concurrent Consumers Not Allowed for Durable Subscription [SPR-10037] #14671
- Unnecessary reading of java.lang.Object input stream [SPR-10058] #14691
- Implement support of Jackson2 for MappingJacksonMessageConverter [SPR-10099] #14732
- EntityManagerFactoryUtils.findEntityManagerFactory() does not search parent contexts if persistence unit name is unspecified [SPR-10160] #14793
- RequestMappingInfoHandlerMapping.handleNoMatch returns null instead of throwing an exception [SPR-10193] #14826
- Remove xsd versions from reference samples [SPR-10010] #14644
- Use ExtendedBeanInfo on an as-needed basis only [SPR-9723] #14357
- Documentation update regarding aspectjrt and aspectjweaver jars usage [SPR-8896] #13537
🪲 Bug Fixes
- MemoryLeak in Cglib2AopProxy.ProxyCallbackFilter [SPR-8008] #12663
- CachedIntrospectionResults cannot be cleared for null class loaders [SPR-9189] #13827
- MimeMessageHelper does not handle attachment file name encoding [SPR-9258] #13896
- BridgeMethodResolver throws exception when trying to find bridged method if method is declired in interface or it is abstract [SPR-9330] #13968
- FreeMarkerConfigurationFactory's instance variable become enlarged whenever call create method. [SPR-9389] #14025
- LocalVariableTableParameterNameDiscoverer doesn't support bridged methods [SPR-9429] #14065
- MBeanExporter#destroy logs warnings about explicitly unregistered mbeans [SPR-9451] #14086
- SimpleDriverDataSource doesn't use the connectionProperties specified [SPR-9461] #14096
- Add migration instructions regarding component-scanning against "org" base package [SPR-9843] #14476
- MockHttpServletResponse.getHeaderNames is incompatible with Servlet 3.0 [SPR-9885] #14518
- ContextLoader incorrectly refreshes already refreshed context [SPR-9996] #14630
- SpringBeanAutowiringInterceptor not closing ApplicationContext after EJB initialisation exception [SPR-10013] #14647
- AbstractCachingViewResolver - caching redirect views leads to memory leak [SPR-10065] #14698
- EclipseLink marks transaction RollbackOnly when applying timeout for "nonread" queries [SPR-10068] #14701
- NamedParameterJdbcTemplate for "insert / select" clause, set NULL value causes JConnect 7 (Sybase) problem - java.io.IOException: JZ0SL: Unsupported SQL type 0. - Affects 3.1.3.RELEASE, works in 3.1.1.RELEASE [SPR-10084] #14717
- HierarchicalUriComponents.equals() incorrectly returns false when other object is not an instance of OpaqueUriComponents [SPR-10088] #14721
- SpEl bug while reading boolean fields [SPR-10091] #14724
- DMLC: JMS resources are never cleared under certain conditions [SPR-10092] #14725
- JMSTemplate.receive() and receiveSelected() don't use "receiveTimeout" property if in a transaction [SPR-10109] #14742
- Processing java.math.BigDecimal via Spring's ExtendedBeanInfo fails sporadically [SPR-10111] #14744
- SpEL support for static finals on interfaces [SPR-10125] #14758
- MessageSourceResourceBundle.containsKey throws NullPointerException [SPR-10136] #14769
- Consider bridge methods in SpEL properties [SPR-10162] #14795
- AbstractMessageConverterMethodProcessor returns allSupportedMediaTypes with HttpMediaTypeNotAcceptableException [SPR-10175] #14808
- Attribute mode removed from annotation-driven definition in spring-task.xsd [SPR-10177] #14810
- FormHttpMessageConverter#writePart NPE on 'partBody.getClass()' [SPR-10187] #14820
- MockHttpServletRequest must not throw an exception on getParameter(null) [SPR-10192] #14825
- HttpEntityMethodProcessor does not support HttpEntity/ResponseEntity subclasses [SPR-10207] #14840
- MBeanExporter/MBeanRegistrationSupport leaks ObjectNames in registeredBeans [SPR-10957] #15585
- Handling of BeanInfo broken [SPR-10040] #14674
- Deadlock in DefaultListableBeanFactory/DefaultSingletonBeanRegistry [SPR-10020] #14654
- ReflectivePropertyAccessor should not consider bridge methods [SPR-9994] #14628
- IntrospectionException: type mismatch between indexed and non-indexed methods [SPR-9943] #14576
- Prevent duplicate
@Import
processing and ImportBeanDefinitionRegistrar invocation [SPR-9925] #14558 - Ensure LineNumberReader is always closed in ResourceDatabasePopulator [SPR-9912] #14545
- ExtendedBeanInfo exception - java.beans.IntrospectionException [SPR-9702] #14336
- Deadlock between DefaultListableBeanFactory and DefaultSingletonBeanRegistry, perhaps due to lazily-instantiated aspect [SPR-7718] #12374
📔 Documentation
- Doc: Bad snippet for CompositeCacheManager [SPR-9064] #13703
- Error in doc on JCA CCI - ConnectionSpecConnectionFactoryAdapter [SPR-9466] #14101
- Example shows deprecated ScheduledTimerTask [SPR-10050] #14683
- Community Download site mentioned in the docs doesn't work [SPR-10171] #14804
- Fix castor website [SPR-10189] #14822
- Backport "Documentation update regarding aspectjrt and aspectjweaver jars usage" [SPR-10009] #14643
3.2 GA Release
⭐ New Features
- Support external Javadoc links [SPR-10078] #14711
- Support comments within SQL statements in ResourceDatabasePopulator [SPR-10075] #14708
- Make DeferredResult extensible [SPR-10059] #14692
- Unnecessary reading of java.lang.Object input stream [SPR-10058] #14691
- FormHttpMessageConverter should have a MappingJackson2HttpMessageConverter in its partConverters [SPR-10055] #14688
- Make it easier to integrate Tiles 3 with Spring MVC [SPR-10054] #14687
- Add hook for before concurrent handling [SPR-10052] #14685
- Rename MvcAsyncTask to WebAsyncTask [SPR-10051] #14684
- Concurrent Consumers Not Allowed for Durable Subscription [SPR-10037] #14671
- SpEL performance [SPR-10035] #14669
- Support comments within SQL statements in JdbcTestUtils [SPR-9982] #14616
- Possibility to disable WebApplicationInitializer [SPR-9977] #14611
- Eclipse .classpath exports optional and provided dependencies [SPR-9656] #14290
- Setting default charset in StringHttpMessageConverter [SPR-7904] #12559
🪲 Bug Fixes
- DMLC: JMS resources are never cleared under certain conditions [SPR-10092] #14725
- SpEl bug while reading boolean fields [SPR-10091] #14724
- HierarchicalUriComponents.equals() incorrectly returns false when other object is not an instance of OpaqueUriComponents [SPR-10088] #14721
- Replace SLF4J with ACL in TilesConfigurer for Tiles 3 [SPR-10077] #14710
- POM of spring-aspects should have a dependency on aspectjweaver and not aspectjrt [SPR-10072] #14705
- Tests in spring-test-mvc fail to execute in Eclipse [SPR-10070] #14703
- EclipseLink marks transaction RollbackOnly when applying timeout for "nonread" queries [SPR-10068] #14701
- AbstractCachingViewResolver - caching redirect views leads to memory leak [SPR-10065] #14698
- 404 error when working with .htm servlet-mapping [SPR-10061] #14694
- StandaloneMockMvcBuilder's setHandlerExceptionResolvers does not return the builder [SPR-10053] #14686
- MVC test support breaks the contract of ServletRequestAttributes.getRequest() [SPR-10025] #14659
- AbstractBeanFactory#markBeanAsCreated performance issue due to lock contention [SPR-9780] #14414
- AbstractAutoProxyCreator and RequiredAnnotationBeanPostProcessor synchronized HashSet locking bottleneck [SPR-9711] #14345
- MemoryLeak in Cglib2AopProxy.ProxyCallbackFilter [SPR-8008] #12663
📔 Documentation
- Example shows deprecated ScheduledTimerTask [SPR-10050] #14683
- Document new testing features in the "New in Spring 3.2" section of the reference manual [SPR-9941] #14574
- Document WebApplicationContext support in the TestContext Framework [SPR-9864] #14497
- Document which functionality gets implicitly activated by <context:component-scan /> [SPR-9808] #14441
3.2 RC2 Release
⭐ New Features
- Remove reflection usage in orm.hibernate4.* [SPR-10039] #14673
- Introduce AnnotationAwareOrderComparator#INSTANCE constant [SPR-10038] #14672
- Update reference docs to a more modern CSS style [SPR-10036] #14670
- Support bean disposal on ApplicationContext shutdown for Closeable beans [SPR-10034] #14668
- Remove duplicate imageobject items from reference xml [SPR-10033] #14667
- Migrate to docbook 5 [SPR-10032] #14666
- Simplify CachedIntrospectionResults caching arrangements [SPR-10028] #14662
- Drop Appendix E. spring-beans-2.0.dtd [SPR-10011] #14645
- Restore custom reference manual titlepage [SPR-10008] #14642
- Changing the default behaviour of DeferredResult when the timeout is triggered [SPR-10002] #14636
@Cacheable
should participate in transactions [SPR-9966] #14600- Implement java.io.Closeable where appropriate [SPR-9962] #14596
- Provide option in MockRestServiceServer where an instance of MockMvc is used to obtain the response [SPR-9917] #14550
- Support SpEL in mvc:mapping tags [SPR-9848] #14481
- Add documentation for cache and jdbc namespaces [SPR-9824] #14457
- Non-singleton beans performance issue [SPR-9819] #14452
- container-type and other NMTOKEN attributes declared in spring-jms-3.1.xsd - consider using string pattern to allow for property placeholders [SPR-9597] #14231
- Support Aware interfaces for ImportBeanDefinitionRegistrar [SPR-9568] #14202
- Add support for in addition to for mvc:message-converters [SPR-9469] #14104
- spring-expression: null values in (boolean) expressions won't be converted [SPR-9445] #14064
- mvc:resources/ location param shoud support SpEL [SPR-9291] #13929
- Tiles-3 support [SPR-8825] #13467
- AsyncAnnotationBeanPostProcessor should cache AopUtils.canApply results, it's unusable in projects with a huge number of prototype beans otherwise [SPR-8065] #12720
- Cache result of AopUtils.canApply [SPR-7328] #11987
🪲 Bug Fixes
- WebMvcConfigurationSupport is not properly initializing ExceptionHandlerExceptionResolver [SPR-9997] #14631
- LocalDataSourceConnectionProvider closes connection instead of releasing it [SPR-9978] #14612
- HttpMessageConverter no longer works for
@ResponseBody
parameters with an extended generic.at the type [SPR-9964] #14598 - Honor timeZone property in DateTimeFormatterFactory [SPR-9953] #14586
- The behavior of returning null for Callable or DeferredResult return values is currently undefined [SPR-9951] #14584
- Error in "13.4.3 Batch operations with multiple batches" documentation [SPR-9937] #14570
- inherited
@Lazy
annotation not picked up for scanned@Components
[SPR-9589] #14223 @DependsOn
inheritence appears not to function as defined [SPR-9476] #14111- org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBean() causes ClassLoader leak [SPR-8956] #13596
- Performance bottleneck and potential thread deadlock in DefaultSingletonBeanRegistry [SPR-8471] #13117
📔 Documentation
3.2 RC1 Release
⭐ New Features
- SQL Server error code 209 should map to BadSqlGrammarException [SPR-9946] #14579
- Extend conditional conversion support [SPR-9928] #14561
- Provide a way to handle timeouts for Servlet 3 async requests [SPR-9914] #14547
- Allow setting WSDL document as a Resource on LocalJaxWsServiceFactory [SPR-9909] #14542
- Allow usage of injection annotations (
@Autowired
,@Value
) as meta-annotations [SPR-9890] #14523 - Allow configurable await time in TestCallableInterceptor in test mvc [SPR-9875] #14508
- Allow SpEL reserved words in type package names [SPR-9862] #14495
- Add first class support for testing Spring MVC applications [SPR-9859] #14492
- ContentNegotiatingViewResolver does not support wildcards in contentType [SPR-9807] #14440
- Develop ConcurrentReferenceHashMap [SPR-9796] #14429
- List
@PathVariable
not converted correctly in@Controller
[SPR-9765] #14399 - Support for increment (++) operator in SpEL [SPR-9751] #14385
- TypeDescriptor getAnnotation method should use generics [SPR-9744] #14378
- Implement support of Jackson2 for JacksonObjectMapperBeanFactory [SPR-9739] #14373
- Implement HttpMessageConverter that can use a ConversionService to convert String content to some Object type [SPR-9738] #14372
- Make locales in MockHttpServletRequest configurable [SPR-9724] #14358
- Support flexible formatting for resolved message codes [SPR-9707] #14341
- Support conversion from Enum Interface [SPR-9692] #14326
- Provide runtime access to Spring container and bean graph metadata [SPR-9662] #14296
- MediaType's include method does not check for generalization when using a format extension/suffix [SPR-9635] #14269
- Allow PropertyResolver implementations to ignore unresolvable ${placeholders} [SPR-9569] #14203
- Bypass conversion when possible [SPR-9566] #14200
- Upgrade commons-httpclient from version 4.1 to version 4.2 [SPR-9475] #14110
- Add more details in ResourceAccessException message thrown by doExecute method of RestTemplate [SPR-9325] #13963
- Cache and late resolve annotations on bean properties to improve performance [SPR-9166] #13804
- Make the ConfigurableWebBindingInitializer easy to customize in WebMvcConfigurationSupport [SPR-8984] #13624
- Introduce
@EnableMBeanExport
equivalent to context:mbean-export [SPR-8943] #13583 - Use concurrent cache to improve performance of GenericTypeResolver [SPR-8701] #13343
- Allow Customization of Object Name Attributes [SPR-8244] #12892
- MockHttpRequest to support ClientRequestInterceptor testing [SPR-7995] #12650
- Add first class support for client-side REST tests [SPR-7951] #12606
- MappingJacksonHttpMessageConverter default media type should include *+json [SPR-7905] #12560
- Support for custom global Joda DateTimeFormatters [SPR-7121] #11781
- Apache HttpClient 4.1 pooled coonection manager support in Spring Web [SPR-6940] #11605
- Support DateTimeFormat annotation without Joda [SPR-6508] #11174
- Support loading WebApplicationContexts with the TestContext Framework [SPR-5243] #9917
- Throw AopInvocationException on advice returning null for primitive type [SPR-4675] #9352
- Provide support for session/request scoped beans for integration testing [SPR-4588] #9265
🪲 Bug Fixes
- AbstractEnvironment addActiveProfile ignores profiles activated with properties [SPR-9944] #14577
- HttpMessageNotReadableException when
@RequestBody
(required=false) [SPR-9942] #14575 - Spring test module shouldn't pull in hamcrest-all as hard dependency [SPR-9940] #14573
- Avoid NullPointerException in ObjectToObjectConverter [SPR-9933] #14566
- OncePerRequestFilter executes again on errors [SPR-9895] #14528
- PathExtensionContentNegotiationStrategy depends on Servlet 3 specific method [SPR-9826] #14459
- RequestMethodsRequestCondition fails on unsupported method types [SPR-9815] #14448
- Delete CopyOfRequestMappingHandlerMapping [SPR-9814] #14447
- JibxMarshaller deletes comments when Result is an XMLEventWriter [SPR-9768] #14402
- Initialize ServletContext and ServletConfig property sources eagerly in FrameworkServlet [SPR-9610] #14244
- Resolve Collection element types during conversion [SPR-9257] #13895
@Entity
objects are not enhanced by the load time weaver in certain situations [SPR-8523] #13167
3.1.3 Release
⭐ New Features
- AbstractRoutingDataSource does not allow to unwrap the underlying datasource [SPR-9856] #14489
- Add JDBC exception translation support for Oracle error code ORA-06550 [SPR-9853] #14486
- allow replaced-method 'arg-type' matches against element body as well as 'match' attribute [SPR-9812] #14445
- Support opaque URIs in UriComponentsBuilder [SPR-9798] #14431
- Spring 3.1 CookieGenerator does not support HttpOnly property added in servlet 3.0 [SPR-9794] #14427
- Allow Jaxb2Marshaller to work with EclipseLink MOXy when using external binding definitions [SPR-9757] #14391
- Avoid per-request Pattern.compile() calls. [SPR-9749] #14383
- Share MethodParameter cache between HandlerMethods [SPR-9748] #14382
- Get rid of per-instance logger creation [SPR-9747] #14381
- Allow parsing of media types with single-quotes [SPR-9734] #14368
- Sybase lock wait timeout error code missing [SPR-9681] #14315
- Poor Performance with lots of Prototype Scoped Beans [SPR-9670] #14304
- HttpHeaders.getAccept() does not return all accept headers for Iplanet WebServer 7 [SPR-9655] #14289
- Add SpEL support for float literals [SPR-9486] #14121
- UriComponentsBuilder.query(String) does not always match properly the query [SPR-9474] #14109
- Deprecate SimpleJdbcTestUtils in favor of JdbcTestUtils [SPR-9235] #13873
- Value-oriented return method handling broken in 3.1 [SPR-9218] #13856
@ResponseBody
does not work with@ExceptionHandler
when reason is set in@ResponseStatus
[SPR-9159] #13797- Creating of Spring beans takes a long time when the application is deployed through webstart / jnlp with Java 6 and above [SPR-9117] #13755
- 3.1.x reference docs mentions RequestBodyNotValidException but should be MethodArgumentNotValidException [SPR-9111] #13749
- TypeConverterDelegate contains commented out code [SPR-8463] #13109
- Make ResourceBundleMessageSource more flexible (catching up with Java 6's java.util.ResourceBundle) [SPR-7392] #12050
🪲 Bug Fixes
- When SimpleMessageListenerContainer could not connect, it throws a NullPointerException in shutdown() [SPR-9930] #14563
- Close 'beans' tag in MVC namespace documentation [SPR-9898] #14531
- Inconsistent behavior for LocalContainerEntityManagerFactoryBean for using/not using persistence.xml, with Hibernate4 [SPR-9883] #14516
- DispatcherPortlet should forward to view for ResourceRequest [SPR-9876] #14509
- Portlet mapping predicate compareTo is not transitive [SPR-9874] #14507
- OpDivide wrongly wraps result of division in TypedValue [SPR-9869] #14502
- NullPointerException in AbstractMessageConvertorMethodProcessor [SPR-9868] #14501
- Unscalable code in Jaxb2Marshaller [SPR-9867] #14500
- TypeConverterDelegate falls back to deprecated Date constructor when first converter failed [SPR-9865] #14498
- LoadTimeWeaving not working properly in Websphere [SPR-9857] #14490
- ServletConfigAware-related exception is not thrown as expected [SPR-9855] #14488
- POM dependency issue: com.caucho#com.springsource.com.caucho;3.2.1 is no longer available [SPR-9854] #14487
@Resource
injection of singleton in prototype using AnnotationConfigApplicationContext is not thread-safe [SPR-9852] #14485- Prevent memory leaks with
@Configuration
beans [SPR-9851] #14484 - Hibernate 4 class loading issue on JBoss 7 when hibernate & spring classes loaded by different classloaders [SPR-9846] #14479
- Automatically created java.inject.Provider cannot be injected into session scoped beans [SPR-9845] #14478
- Upgrade spring mvc app to 3.1.2 causes content-type to be returned as 'application/*+xml' [SPR-9841] #14474
- HttpComponentsHttpInvokerRequestExecutor does not explicitly release connection [SPR-9833] #14466
- Erroneous "0" returned where empty string expected in call through the RestTemplate [SPR-9832] #14465
- Race Condition in ReschedulingRunnable [SPR-9821] #14454
- Fix split package introduced by
@EnableSpringConfigured
[SPR-9811] #14444 - Autowired properties can remain unset during concurrent instantiation of prototype-beans [SPR-9806] #14439
- Performance degradation for TransactionInterceptor [SPR-9802] #14435
- Spring fails to locate jar files defined with jar-file tag in persistence.xml [SPR-9797] #14430
- RestTemplate fails to correctly parse some HTTP URI parameters [SPR-9791] #14424
- ResourceDatabasePopulator incredibly slow on JDK 1.7.0_06 or newer [SPR-9781] #14415
- DelegatingDataSource incorrectly implements java.sql.Wrapper [SPR-9770] #14404
- Remove default profile during environment merge [SPR-9761] #14395
- Register environment in all bean factories in a hierarchy [SPR-9756] #14390
- LinkedCaseInsensitiveMap duplicate element with put() [SPR-9754] #14388
- Default PersistenceUnit is configured with wrong name, resulting in duplicates & causes RTE. [SPR-9741] #14375
- Flashmap matching logic fails when target params are encoded. [SPR-9657] #14291
- BeanFactoryAnnotationUtils should throw BeansException [SPR-9652] #14286
- Injection of Provider fails for prototype-scoped beans [SPR-9630] #14264
- When testing controller mappings using AnnotationMethodHandlerAdapter NPE is thrown [SPR-9629] #14263
- Regression: scoped beans being cached too aggressively [SPR-9627] #14261
- org.springframework.core.Constants fail with NPE dispite method documentations say that it accepts null values [SPR-9608] #14242
- MessageSourceSupport and StaticMessageSource uses invalid caches for MessageFormat [SPR-9607] #14241
- Wrong compareTo() implementation in Portlet mapping predicates [SPR-9605] #14239
- RequestMappingInfoHandlerMapping.handleNoMatch throws HttpRequestMethodNotSupportedException incorrectly [SPR-9603] #14237
- JdbcTestUtils should not interpret comments as a separate statement [SPR-9593] [#14227](https://github.c...
3.2 M2 Release
⭐ New Features
- MockFilterChain should support Filters and Servlet [SPR-9745] #14379
- Introduce ConvertingComparator and InstanceComparator [SPR-9730] #14364
- HttpEntity and ResponseEntity value objects do not implement equals(…)/hashCode() [SPR-9714] #14348
- Make DeferredResult testable [SPR-9690] #14324
- DeferredResult/async provides no (obvious) way to handle exceptions [SPR-9689] #14323
- MockHttpSession does not implement invalidate() properly [SPR-9686] #14320
- Introduce strategy for BeanInfo creation [SPR-9677] #14311
- Upgrade to ASM 4.0 and CGLIB 3.0 [SPR-9669] #14303
- Introduce countRowsInTableWhere() and dropTables() in abstract transactional base classes in the TestContext framework [SPR-9665] #14299
- XStreamMarshaller + BinaryStreamDriver [SPR-9663] #14297
- Upgrade to Gradle 1.1 GA [SPR-9660] #14294
- MVC: Put exception in PageContext before sending error [SPR-9653] #14287
- Support single, unnamed transaction manager bean in the TestContext framework [SPR-9645] #14279
@DateTimeFormat
does not work with@Value
[SPR-9637] #14271- SpEL should support standard operators for logical AND and logical OR [SPR-9614] #14248
- SpEL should support case-insensitive null literals [SPR-9613] #14247
- Support TransactionManagementConfigurer for determining the transaction manager in the TestContext framework [SPR-9604] #14238
- Improve getNamedDispatcher(String) method of MockServletContext [SPR-9587] #14221
- Support base package inference for
@ComponentScan
[SPR-9586] #14220 - org.springframework.web.context.request.async.DeferredResult should have parameter type [SPR-9579] #14213
- Proper handling of parameterized types for
@RequestBody
parameters [SPR-9570] #14204 - Improve SimpleStreamingClientHttpRequest performance [SPR-9530] #14164
- Update javadoc of HttpMediaTypeException constructor [SPR-9513] #14147
- Infer return type of parameterized static factory methods [SPR-9493] #14127
- Introduce MockEnvironment in the spring-test module [SPR-9492] #14126
- Javadoc for RequestMapping consumes, produces format is misleading, incomplete [SPR-9483] #14118
- Document correct data sql file name in default scripts of embedded database in reference manual [SPR-9467] #14102
- Add Servlet 3 async support related config options [SPR-9399] #14035
- Update documentation with regards to overrid RequestMappingHandlerMapping and RequestMappingHandlerAdapter when using the MVC namespace [SPR-9344] #13982
- com.sun.syndication.feed.rss.Channel/Feed should be rendered by RssChannelHttpMessageConverter/AtomFeedHttpMessageConverter by default [SPR-9336] #13974
- DefaultHandlerExceptionResolver doesn't provide a reason when sending error responses [SPR-9312] #13950
- DefaultHandlerExceptionResolver doesn't handle BindException but does handled other data binding related exceptions [SPR-9310] #13948
- Improved support for REST API error reporting [SPR-9283] #13921
- Add extension element to Spring Web MVC
@RequestMapping
annotation [SPR-9153] #13791 - Provide bean factory to simplify the customization of Jackson ObjectMapper [SPR-9125] #13764
- Support
@MVC
methods that can apply to any@Controller
[SPR-9112] #13750 - Provide support for ApplicationContextInitializers in the TestContext framework [SPR-9011] #13650
- Provide JdbcTemplate in abstract transactional base classes in the TestContext framework [SPR-8990] #13630
- Reduce log level to DEBUG when
@TestExecutionListeners
is not present [SPR-8645] #13287 - Spring MVC - Ability to use a Converter based on the Path Extension instead of Accep Header. [SPR-8546] #13190
- Content negotiation improvements [SPR-8410] #13057
- HttpMessageConverter doesn't support typed collections [SPR-8381] #13028
- Better description for DispatcherServlet's "No adapter for handler: Does your handler implement a supported interface like Controller?" exception message [SPR-8338] #12986
- Add support for the HTTP PATCH method [SPR-7985] #12640
- Use of semicolon delimited lists in REST URIs [SPR-7818] #12474
@RequestMapping
should support alternative between a header and a url extension [SPR-7722] #12378- Introduce request parameter based content negotiation for ResponseBody / HttpMessageConverter approach [SPR-7517] #12175
- Allow Errors/BindingResult after
@RequestBody
[SPR-7114] #11774 - Proper handling of parameterized types in RestTemplate [SPR-7023] #11685
- Add content-negotiation to RequestBody and ResponseBody processing [SPR-6993] #11658
- Add Gradle task for building zip with dependencies [SPR-6575] #11241
- Ability to exclude HandlerInterceptor from specific path with mvc:interceptor [SPR-6570] #11236
@RequestMapping
should support accept header and url extension [SPR-6497] #11163- Use split index for Web documentation [SPR-4984] #9660
🪲 Bug Fixes
- Sometimes throws Classcast exception for cglib [SPR-10086] #14719
- Package org.springframework.asm split across core and asm JARs [SPR-9988] #14622
- isFormContentType in org.springframework.web.filter.HttpPutFormContentFilter should return false on an illegal argument exception [SPR-9769] #14403
- Sort candidate
@AspectJ
methods deterministically [SPR-9729] #14363 - Unable to build spring-framework on Windows platform [SPR-9717] #14351
- spring-orm dependency on spring-web should be optional [SPR-9632] #14266
- SpEL MethodFilter registration fails if custom method resolvers have been set [SPR-9621] #14255
- SpEL fails to parse nested double quotes in expressions [SPR-9620] #14254
- SpEL fails to parse method invocation on an Integer literal [SPR-9612] #14246
- A forward before startAsync is called results in incorrect async request processing [SPR-9611] [#14245](https://githu...
3.1.2 Release
⭐ New Features
- Setting default charset in StringHttpMessageConverter [SPR-7904] #12559
- XStreamMarshaller should convert XStream StreamException to Spring exception in case of unmarshalling an empty stream [SPR-9536] #14170
- Use BufferedInputStream in SimpleMetaDataReader to double performance [SPR-9528] #14162
- Quartz 2.x scheduler support (SimpleTriggerFactoryBean) ignores repeatCount attribute [SPR-9521] #14155
- Backport constructor accepting Charset in StringHttpMessageConverter, from Spring for Android to Spring Web. [SPR-9487] #14122
- Hibernate 4 smart flushing does not work unless CMTTransactionFactory is being specified [SPR-9480] #14115
- Resolve nested ${..} placeholders via PropertyResolver/Environment [SPR-9473] #14108
- Add missing section ids in reference documentation [SPR-9346] #13984
- Use Jackson 2.0 for Jackson based json processing such as MappingJacksonJsonView [SPR-9302] #13940
- Clarify
@EnableScheduling
javadoc re ExecutorService shutdown [SPR-9280] #13918 - Reduce log level for message re: missing annotation [SPR-9233] #13871
- HttpClientErrorException should provide access to response headers [SPR-7938] #12593
- Invalid MIME-type causes a 500 error [SPR-7712] #12368
- Cache by-type lookups in DefaultListableBeanFactory [SPR-6870] #11536
- Enable Executor qualification with
@Async
[SPR-6847] #11513
🪲 Bug Fixes
- Documentation for AbstractResource.getFilename() says 'throws IllegalAccessException' when in fact it returns null [SPR-9561] #14195
- DatabasePopulatorUtils uses non-transactional connection [SPR-9457] #14092
- ApplicationContext environment inheritance may causes child context environment property sources to be lost [SPR-9444] #14080
- Fix package cycle established by
@EnableSpringConfigured
[SPR-9441] #14077 - Fix regression in ClassPathResource descriptions [SPR-9413] #14049
- Unknown status codes (i.e. not in HttpStatus enum) prevent HttpClientErrorException and HttpServerErrorExceptions from being raised [SPR-9406] #14042
- Exposure of setStatisticsEnabled/setSampledStatisticsEnabled causes cache not initialized exception when chaches are defined as spring beans. [SPR-9392] #14028
- Reinstate check for a type-level
@RequestMapping
annotation to decide if a bean contains@RequestMapping
methods [SPR-9374] #14010 - Cannot amend properties in RequestMappingHandlerMapping (e.g. useSuffixPatternMatch) using a bean post processor as ApplicationContextAwareProcessor always fires first initialising RequestMappingHandlerMapping [SPR-9371] #14007
- Regression: Incorrect behavior if a
@PathVariable
has the same name as a@ModelAttribute
's object property [SPR-9349] #13987 @PathVariable
drops extension [SPR-9333] #13971- UriComponentsBuilder.fromUri brakes url encoded query param [SPR-9317] #13955
- org.springframework.web.multipart.support.StandardServletMultipartResolver.cleanupMultipart causes an IOException on Resin [SPR-9299] #13937
- DispatcherPortlet shouldn't call exposeActionException during event processing [SPR-9287] #13925
- MutablePropertySources#get throws when it should return null [SPR-9179] #13817
- Scoped-proxy memory leak w/
@Resource
injection [SPR-9176] #13814 - org.springframework.context misses Import-Package on javax.inject [SPR-9173] #13811
- Avoid infinite loop in AbstractResource#contentLength [SPR-9161] #13799
- AbstractMessageConverterMethodProcessor ignores quality parameter when selecting a MediaType [SPR-9160] #13798
- "Content-Disposition" in class StandardMultipartHttpServletRequest should be case insensitive [SPR-9149] #13787
- Invalid MIME-type causes a 500 error [SPR-9142] #13781
- Race condition in AnnotationMethodHandlerExceptionResolver [SPR-9138] #13777
- Custom condition in request mapping handler does not work as an exclusion filter [SPR-9134] #13773
- Fix regression in
@PropertySource
placeholder resolution [SPR-9133] #13772 - ServletContextResource getFile should not rely on getRealPath (for WebLogic 10 compatibility) [SPR-8461] #13107
📔 Documentation
3.2 M1 Release
⭐ New Features
- Improve documentation for
@Bean
'lite' mode and annotated class support in the TestContext Framework [SPR-9401] #14037 - java.sql.SQLTimeoutException not translated to org.springframework.dao.QueryTimeoutException [SPR-9376] #14012
- Possibility of creating multiple custom
@RequestConditions
[SPR-9350] #13988 - Documentation Typo [SPR-9321] #13959
- Add convenient WebApplicationInitializer base classes [SPR-9300] #13938
- Support binding
@PathVariable
(s) to a Map [SPR-9289] #13927 - Confusion around binding request parameters to Maps using Spring MVC [SPR-9265] #13903
- Small memory improvements to InjectionMetadata and InitDestroyAnnotationBeanPostProcessor.LifecycleMetadata [SPR-9264] #13902
- Improve Support for Maps of Mixed Types [SPR-9249] #13887
@RequestBody
should have a required parameter to allow a request body to be optional [SPR-9239] #13877- Allow configuration of a custom MessageCodesResolver in WebMvcConfigurer [SPR-9223] #13861
- SpEL: support references to arrays in the T() construct [SPR-9203] #13841
- ResourceHttpRequestHandler should check that locations is not null [SPR-9186] #13824
- Map Oracle's ORA-30006 to Spring's CannotAcquireLockException [SPR-9141] #13780
- Decode URI variable values when UrlPathHelper.setUrlDecode() is set to false [SPR-9098] #13736
- Improve dependency management for the spring-test module [SPR-8861] #13503
- Missing syntax in the 3.0.0 reference documentation [SPR-8856] #13498
- Support for JCache (JSR-107) [SPR-8774] #13417
- Support not (!) operator for profile selection [SPR-8728] #13370
- Support for Servlet 3.0/3.1 asynchronous request processing [SPR-8517] #13162
- spring-expression: OpPlus should convert operand values to String using registered convertors [SPR-8308] #12957
- Improve build system and source control infrastructure [SPR-8120] #12773
- HttpStatus deprecations/links [SPR-7942] #12597
- Update documentation regarding scoped-proxy and singleton beans [SPR-7940] #12595
- Hibernate LocalSessionFactoryBean schemaUpdate incompatible with automatic dialect detection [SPR-7936] #12591
- Predict specific object type in EhCacheFactoryBean [SPR-7843] #12499
- support pretty printing in MappingJacksonHttpMessageConverter [SPR-7201] #11860
- Support initial delay attribute for
@Scheduled
and task:scheduled [SPR-7022] #11684 - <form:form /> : propose a limited number of values for the method attribute [SPR-6945] #11610
- Some implementation of HandlerExceptionResolver should allow for a list of Exceptions to be ignored [SPR-5193] #9866
🪲 Bug Fixes
- StringUtils.parseLocaleString incorrectly parses when language and country are the same and lowercase "de_de" parses to "de_DE_de" [SPR-9420] #14056
- Log4jWebConfigurer: wrong config location URL with some property substitutions [SPR-9417] #14053
- JavaBeanInfo Link broken [SPR-9408] #14044
- ContentNegotiationViewResolver should not decode Request-URI while fetching requested Media-Types [SPR-9390] #14026
- Broken external link in AbstractWireFeedHttpMessageConverter API [SPR-9379] #14015
- AnnotationUtils.findAnnotation(Method, Class) fails to find annotation under specific conditions [SPR-9342] #13980
- HttpStatusCodeException cannot be serialized [SPR-9273] #13911
- incorrect message in BeanCreationException [SPR-9260] #13898
- JSON (jackson)
@RequestBody
marshalling throws java.io.EOFException when body is missing [SPR-9238] #13876 - Reference documentation has incorrect attribute name for Spring url tag [SPR-9188] #13826
- [SpEL] Problem with uppercase property names [SPR-9123] #13761
- Multiple javadoc issues [SPR-9113] #13751
- Encoding issue causes javadoc generation to fail [SPR-9097] #13735
- JibxMarshallerTests causes build failure on Windows [SPR-8360] #13007
- Constants.toCode throws NPE when namePrefix is null [SPR-8278] #12926
- Wrong path mapping combination between type-level and method-level
@RequestMapping
on@Controller
[SPR-7970] #12625 - org.springframework.web.servlet.view.json.MappingJacksonJsonView does not set the Content-Length response header. [SPR-7866] #12523
- JibxMarshaller doesn't use configured encoding property when unmarshalling documents [SPR-7865] #12522
- Using array syntax generates invalid id in freemarker [SPR-7710] #12366
- Invalid reference to spring version in MultipartResolver javadocs [SPR-5984] #10652
📔 Documentation
- Change green JavaDocs API to standard JavaDoc colors with SpringSource logo [SPR-6787] #11453