Skip to content

Conversation

@motlin
Copy link
Collaborator

@motlin motlin commented Jul 14, 2025

No description provided.

<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.

@MykolaGolubyev MykolaGolubyev merged commit 688d3bf into testingisdocumenting:master Jul 14, 2025
1 check passed
@motlin motlin deleted the upgrade-jackson branch July 14, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants