Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<vertx.io.version>3.9.4</vertx.io.version>
<commonmark.version>0.23.0</commonmark.version>
<antlr.version>4.5</antlr.version>
<jackson.version>2.16.0</jackson.version>
<jackson.version>2.19.1</jackson.version>
<webtau.version>2.2</webtau.version>
<jaxb.version>2.3.0</jaxb.version>
<ant.version>1.10.11</ant.version>
Expand Down
2 changes: 1 addition & 1 deletion znai-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<version>3.6.0</version>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I upgraded jackson without upgrading the shade plugin I ran into Unsupported class file major version 65. The LLM figured it out:

  1. Jackson 2.19.1 includes Java 21 optimizations: The jackson-core-2.19.1.jar is a Multi-Release JAR (MR-JAR) that contains Java 21-specific class files in META-INF/versions/21/. The error specifically mentions the class FastDoubleSwar.class which is a performance optimization for Java 21.

  2. Class file version mismatch: The error "Unsupported class file major version 65" indicates that these are Java 21 bytecode files (major version 65 = Java 21), but the Java version running your Maven build process is older and cannot process Java 21 class files.

  3. Maven Shade Plugin limitation: The maven-shade-plugin version 3.4.1 attempts to process all class files in the JAR, including those in the multi-release sections, but fails when it encounters class files compiled for a newer Java version than what's running the build.

<executions>
<execution>
<id>shade-deps</id>
Expand Down