Repository navigation
[java] Fix #6926: skip file on unresolved generic arity mismatch - #6935
Merged
UncleOwen merged 1 commit intoSep 9, 2026
Merged
Conversation
Contributor
|
Compared to main: (comment created at 2026-09-08 20:27:05+00:00 for 9384d4e) |
adangel
reviewed
Aug 14, 2026
kalayciburak
force-pushed
the
fix/6926-mismatched-unresolved-type-args
branch
from
August 19, 2026 21:57
7b030ad to
1cb2047
Compare
kalayciburak
force-pushed
the
fix/6926-mismatched-unresolved-type-args
branch
3 times, most recently
from
September 3, 2026 18:34
ae7158e to
d244ab5
Compare
kalayciburak
force-pushed
the
fix/6926-mismatched-unresolved-type-args
branch
from
September 8, 2026 18:05
d244ab5 to
120bc2f
Compare
UnresolvedClassStore freezes type-parameter arity on the first use of an unresolved name. A later use with a different argument count used to crash in Substitution.mapping via localSubst. Report a semantic error (type name + file) and skip that file instead of erasing generics or aborting the whole analysis.
kalayciburak
force-pushed
the
fix/6926-mismatched-unresolved-type-args
branch
from
September 8, 2026 19:52
120bc2f to
9384d4e
Compare
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.
Describe the PR
Unresolved types keep the type-parameter arity of the first use (
UnresolvedClassStore). A later use of the same unresolved name with a different argument count used to crash inSubstitution.mapping/CollectionUtil.zipwith:IllegalArgumentException: Mismatched list sizes [T0, T1] to [...]This reports a semantic error (type name + file, missing aux-classpath hint) and skips that file so the rest of the analysis can continue. It does not erase generics.
Related issues
Ready?
./mvnw clean verifypasses (checked automatically by github actions)Test plan (executed)
GREEN locally (Java 25 / release 8 bytecode as configured by the project). TypeDisambiguationTest 14/0 skip 1.