GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bump ASM 9.8 to support JDK 25 bytecode by pan3793 · Pull Request #744 · apache/maven-shade-plugin

Conversation

@pan3793

@pan3793 pan3793 commented Aug 7, 2025

Copy link
Copy Markdown
Member

The current ASM 9.7 does not support JDK 24 and 25 bytecode.

...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.6.0:shade (default) on project kyuubi-spark-sql-engine_2.12: Error creating shaded jar: Problem shading JAR /Users/chengpan/.m2/repository/net/bytebuddy/byte-buddy/1.17.6/byte-buddy-1.17.6.jar entry META-INF/versions/24/net/bytebuddy/jar/asmjdkbridge/JdkClassWriter$1.class: java.lang.IllegalArgumentException: Unsupported class file major version 68 -> [Help 1]
...

  • I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pan3793
Bump ASM 9.8 to support JDK 25 bytecode
0bd149a
The current ASM 9.7 does not support JDK 24 and 25 bytecode.

```
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.6.0:shade (default) on project kyuubi-spark-sql-engine_2.12: Error creating shaded jar: Problem shading JAR /Users/chengpan/.m2/repository/net/bytebuddy/byte-buddy/1.17.6/byte-buddy-1.17.6.jar entry META-INF/versions/24/net/bytebuddy/jar/asmjdkbridge/JdkClassWriter$1.class: java.lang.IllegalArgumentException: Unsupported class file major version 68 -> [Help 1]
...
```
@pan3793

pan3793 commented Aug 7, 2025

Copy link
Copy Markdown
Member Author

the failed UT does not look related to this change, can any committer review this PR?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olamy olamy added the dependencies Pull requests that update a dependency file label Aug 7, 2025
@olamy olamy self-assigned this Aug 7, 2025
@olamy
olamy merged commit d008516 into apache:master Aug 7, 2025
@github-actions github-actions Bot added this to the 3.6.1 milestone Aug 7, 2025
@ludoch

ludoch commented Sep 8, 2025

Copy link
Copy Markdown

jdk25 release is next week, but not sure this change was pushed to a new release of the plugin...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olamy

olamy commented Sep 8, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

jdk25 release is next week, but not sure this change was pushed to a new release of the plugin...

looks not. I will have a look to cut release.
Even if it's still possible to override the asm dependency in your pom, I agree it's not really convenient.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olamy olamy mentioned this pull request Sep 9, 2025
shading failure on JDK 24 #747
Closed
@linghengqian linghengqian mentioned this pull request Sep 20, 2025
Support compiling and using ShardingSphere under OpenJDK 25 apache/shardingsphere#36643
Merged
7 tasks done
@InsertPikachuFace

InsertPikachuFace commented Oct 17, 2025

Copy link
Copy Markdown

@pan3793 @olamy Just to be clear, is version 3.6.1 compatible with JDK 25 or just 24? Because I get this error for a JDK 25 project-build:

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.6.1:shade (default) on project kfz-fahrzeugsuche-service: Error creating shaded jar: Unsupported class file major version 69

If not, how would one "override the asm dependency in your pom" to work with JDK 25?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pan3793

pan3793 commented Oct 17, 2025

Copy link
Copy Markdown
Member Author

@InsertPikachuFace I'm not much familiar with this plugin, below answers are based on my understanding.

is version 3.6.1 compatible with JDK 25 or just 24?

It should support JDK 25.

how would one "override the asm dependency in your pom" to work with JDK 25?

Apache Kyuubi resolved the issue via apache/kyuubi#7164

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@InsertPikachuFace

InsertPikachuFace commented Oct 20, 2025

Copy link
Copy Markdown

I retried it with and without the asm override and nothing changed.
But when I removed the minimizeJar configuration it completed immediately, even with the default asm dependencies. Weird.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olamy

olamy commented Oct 20, 2025

Copy link
Copy Markdown
Member

the problem here is not maven-shade-plugin but minimizer library which is bundling/shading asm.
see #747

InsertPikachuFace reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@oertl oertl mentioned this pull request Oct 27, 2025
Incompatibility of hash4j >= 0.27.0 with Maven shade plugin 3.6.0 dynatrace-oss/hash4j#479
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@olamy olamy

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Milestone

3.6.1

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@pan3793 @ludoch @olamy @InsertPikachuFace
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.