Upgrade AspectJ from 1.6.8 to 1.6.12
- Spring remains compatible against AJ version 1.6.8, but is now
compiling and testing against 1.6.12
- Encountered what appears to be an AJ bug introduced in 1.6.10: an
assertion in org.aspectj.weaver.UnresolvedType causes a false
negative failure when encountering org.springframework.io.Resource
arrays, e.g. "[org.springframework.io.Resource@xxx". This problem
has been reported to the AJ team and in the meantime, the recommended
workaround is to disable assertions either completely, or at least
selectively with
-disableassertions:org.aspectj.weaver.UnresolvedType
Issue: SPR-7989, SPR-9272
This commit is contained in:
11
build.gradle
11
build.gradle
@@ -18,6 +18,7 @@ configure(allprojects) {
|
||||
targetCompatibility=1.5
|
||||
|
||||
ext.slf4jLog4jVersion = '1.5.10'
|
||||
ext.aspectjVersion = '1.6.12'
|
||||
|
||||
[compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:none']
|
||||
|
||||
@@ -133,7 +134,7 @@ project('spring-core') {
|
||||
builtBy project(":spring-asm").jar
|
||||
}
|
||||
compile "commons-logging:commons-logging:1.1.1"
|
||||
compile("org.aspectj:aspectjweaver:1.6.8", optional)
|
||||
compile("org.aspectj:aspectjweaver:${aspectjVersion}", optional)
|
||||
compile("net.sf.jopt-simple:jopt-simple:3.0") { dep ->
|
||||
optional dep
|
||||
exclude group: 'org.apache.ant', module: 'ant'
|
||||
@@ -220,6 +221,10 @@ project('spring-context') {
|
||||
testCompile("javax.xml:jaxrpc-api:1.1")
|
||||
testCompile("javax.inject:com.springsource.org.atinject.tck:1.0.0")
|
||||
}
|
||||
|
||||
test {
|
||||
jvmArgs = ['-disableassertions:org.aspectj.weaver.UnresolvedType'] // SPR-7989
|
||||
}
|
||||
}
|
||||
|
||||
project('spring-tx') {
|
||||
@@ -439,8 +444,8 @@ project('spring-aspects') {
|
||||
dependencies {
|
||||
compile project(":spring-orm")
|
||||
aspects project(":spring-orm")
|
||||
ajc "org.aspectj:aspectjtools:1.6.8"
|
||||
compile "org.aspectj:aspectjrt:1.6.8"
|
||||
ajc "org.aspectj:aspectjtools:${aspectjVersion}"
|
||||
compile "org.aspectj:aspectjrt:${aspectjVersion}"
|
||||
testCompile project(":spring-test")
|
||||
}
|
||||
eclipse.project {
|
||||
|
||||
1
src/dist/changelog.txt
vendored
1
src/dist/changelog.txt
vendored
@@ -5,6 +5,7 @@ http://www.springsource.org
|
||||
Changes in version 3.2 M1
|
||||
-------------------------------------
|
||||
|
||||
* upgraded to AspectJ 1.6.12
|
||||
* better handling on failure to parse invalid 'Content-Type' or 'Accept' headers
|
||||
* handle a controller method's return value based on the actual returned value (vs declared type)
|
||||
* fix issue with combining identical controller and method level request mapping paths
|
||||
|
||||
Reference in New Issue
Block a user