Tobias Gierke created WICKET-6825:
-------------------------------------
Summary: wicket-ioc 9.0.0 throws IAE with JDK14, still includes
outdated ASM 7.1.0 in cglib-nodep
Key: WICKET-6825
URL: https://issues.apache.org/jira/browse/WICKET-6825
Project: Wicket
Issue Type: Bug
Environment: Ubuntu 20.04, openjdk version "14.0.2" 2020-07-14
Reporter: Tobias Gierke
Hi,
We've been using JDK14 with Wicket 8.7.0 for a long time by hacking our pom.xml
and excluding cglib-nodep (which contains org.ow2.asm:asm:7.1.0 just moved to a
different namespace) from wicklet-ioc and overridding ASM with a more recent
version like this:
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-ioc</artifactId>
<exclusions>
<exclusion>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
<version>7.3.1</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.3.0</version>
</dependency>
I see that Wicket 9.0.0 is still using cglib-nodep 3.3.0 and without the above
hack, I get an "Unsupported class file major version 58" error when using the
@SpringBean annotation on JDK14.
Would you consider doing a Wicket 9.0.1 release that uses "cglib" instead of
"cglib-nodep" so that the 8.0.1 asm-utils dependency you already declared in
the wicket-ioc POM can override the outdated ASM dependency declared by the
"cglib" artifact ?
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< org.apache.wicket:wicket-ioc >--------------------
[INFO] Building Wicket IoC common code 9.1.0-SNAPSHOT
[INFO] -------------------------------[ bundle ]-------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ wicket-ioc ---
[INFO] org.apache.wicket:wicket-ioc:bundle:9.1.0-SNAPSHOT
[INFO] +- cglib:cglib-nodep:jar:3.3.0:compile
[INFO] +- javax.inject:javax.inject:jar:1:compile
[INFO] +- org.apache.wicket:wicket-core:jar:9.1.0-SNAPSHOT:compile
[INFO] | +- com.github.openjson:openjson:jar:1.0.12:compile
[INFO] | +- org.apache.wicket:wicket-request:jar:9.1.0-SNAPSHOT:compile
[INFO] | +- org.apache.wicket:wicket-util:jar:9.1.0-SNAPSHOT:compile
[INFO] | | +- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO] | | +- commons-io:commons-io:jar:2.6:compile
[INFO] | | +- org.apache.commons:commons-collections4:jar:4.4:compile
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.6.2:test (optional)
[INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test (optional)
[INFO] | | +- org.junit.platform:junit-platform-engine:jar:1.6.2:test
(optional)
[INFO] | | | +- org.opentest4j:opentest4j:jar:1.2.0:test (optional)
[INFO] | | | \- org.junit.platform:junit-platform-commons:jar:1.6.2:test
(optional)
[INFO] | | \- org.junit.jupiter:junit-jupiter-api:jar:5.6.2:test (optional)
[INFO] | \- org.danekja:jdk-serializable-functional:jar:1.9.0:compile
--
This message was sent by Atlassian Jira
(v8.3.4#803005)