Upgrade Jackson dependencies from 2.16.0 to 2.19.1. - #1331
Conversation
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-shade-plugin</artifactId> | ||
| <version>3.4.1</version> | ||
| <version>3.6.0</version> |
There was a problem hiding this comment.
When I upgraded jackson without upgrading the shade plugin I ran into Unsupported class file major version 65. The LLM figured it out:
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 classFastDoubleSwar.classwhich is a performance optimization for Java 21.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.
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.
No description provided.