Skip to content

Add DynamicConstant - #42

Merged
Palmr merged 1 commit into
Palmr:masterfrom
emilycares:dynamic_constant
Apr 24, 2026
Merged

Palmr merged 1 commit into
Palmr:masterfrom
emilycares:dynamic_constant

Conversation

@emilycares

Copy link
Copy Markdown
Contributor
  1. DynamicConstant was not handled, witch resulted in an Error
    With this change it is possible to load all classes in jdk25.
  2. Fuzzer found and integer underflow panic, with const_pool_size

@Palmr
Palmr merged commit 9866243 into Palmr:master Apr 24, 2026
4 checks passed
prockallsyms pushed a commit to prockallsyms/classfile-parser that referenced this pull request Oct 13, 2026
The ConstantInfo enum covered every JVMS constant pool tag except 17,
CONSTANT_Dynamic (JVMS §4.4.10), so Java 11+ class files using dynamic
constants could not be parsed. Add the Dynamic variant and DynamicConstant
struct, a get_or_add_dynamic helper mirroring get_or_add_invoke_dynamic, and
the matching arm in the JAR explorer's constant pool listing.

Ports upstream Palmr/classfile-parser PR Palmr#42 to the binrw parser.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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