Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong type parameter sharing in generic signature parser #202

Merged
merged 1 commit into from
May 16, 2022

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented May 16, 2022

The generic signature parser used to forget previously encountered
element-level type parameters when parsing a signature of a new
element, and previously encountered class-level type parameters when
parsing a signature of a new class. This leaves a hole: previously
encountered element-level type parameters could be used when
parsing a signature of a new class. When parsing a signature of
a new class, previously encountered element-level type parameters
must also be forgotten, to prevent wrong sharing.

Fixes #98

The generic signature parser used to forget previously encountered
element-level type parameters when parsing a signature of a new
element, and previously encountered class-level type parameters when
parsing a signature of a new class. This leaves a hole: previously
encountered element-level type parameters could be used when
parsing a signature of a new class. When parsing a signature of
a new class, previously encountered element-level type parameters
must also be forgotten, to prevent wrong sharing.
@Ladicek Ladicek added this to the 3.0.0 milestone May 16, 2022
@Ladicek Ladicek linked an issue May 16, 2022 that may be closed by this pull request
@Ladicek Ladicek merged commit d5ed119 into smallrye:smallrye May 16, 2022
@Ladicek Ladicek deleted the signature-parser-fix branch May 16, 2022 11:53
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.

Incorrect type variable resolution for signatures
1 participant