Skip to content

Read module descriptors newer than ASM supports - #239

Merged
slachiewicz merged 1 commit into
masterfrom
agent/asm-future-classfile
Sep 25, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/asm-future-classfile

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

With a toolchain jdkHome set, LocationManager always parses module-info.class with ASM, which rejects class file versions it does not know: JDK 28 (major 72) fails on ASM 9.10.1 (see #165). The parser now lowers the major version to ASM's newest before reading; the Module attribute has not changed since Java 9, so this stops every new JDK from waiting on an ASM release.

This does not settle the Class File API question in #165.

ClassReader throws IllegalArgumentException on a class file major
version newer than the bundled ASM knows (e.g. 72 for JDK 28, #165).
The module-info.class Module attribute hasn't changed since Java 9, so
clamping the major version down to ASM's newest supported one is safe.
@slachiewicz slachiewicz added the bug Something isn't working label Sep 25, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review September 25, 2026 23:40
@slachiewicz
slachiewicz merged commit b5b3c1c into master Sep 25, 2026
12 checks passed
@slachiewicz
slachiewicz deleted the agent/asm-future-classfile branch September 25, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant