Extract Java API from classfiles behind IncOptions.classfileJavaApi (#837)#1730
Open
jozanek wants to merge 4 commits into
Open
Extract Java API from classfiles behind IncOptions.classfileJavaApi (#837)#1730jozanek wants to merge 4 commits into
jozanek wants to merge 4 commits into
Conversation
added 4 commits
June 24, 2026 00:32
Member
|
Thanks for the contribution.
If we want to backport this to 2.0.x, probably keep it as opt-in. For 2.1.x, we can make it on by default assuming it goes through its own RC cycle. |
Contributor
Author
|
Sounds good. It's opt-in here ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Builds on #1714 and #1729 (both merged). Completes the classfile-based Java API path so analysis can avoid reflective class loading entirely — the root cause of #837 / #151 / #1697 — behind a new opt-in
IncOptions.classfileJavaApi(off by default).Signatureparser → realxsbti.apitypes (generics, bounds, wildcards); annotation element values, enum children, varargs, ctorEmptyreturn.IncOptions.classfileJavaApiroutes all Java classes through the classfile path (per-invocation option, parallel-safe, settable viaincOptions.properties); local/anonymous classes mapped via theEnclosingMethodattribute.Validated by a differential audit asserting structural parity with the reflection path (
ClassToAPI) — member set, kind, access, arity, varargs, type-params, declared + inherited nested classes — plus an end-to-end incremental test (same recompiled set with the option on). Whole-class hashes intentionally differ (accepted one-time re-hash); flipping the default is a separate maintainer decision.