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

Fixes #1454 pass TypeMirrors to TypevarContext #1455

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tobyhammett
Copy link

Passing the type arguments directly to TypevarContext means they don't have to be parsed, simplifying the code and avoiding the possibility of parse failures.

Any feedback is welcome. Please let me know if I can add or change anything here to better address the issue. In particular, I think it'd be better with test coverage, but I haven't found the best place to add that yet.

Passing the type arguments directly to TypevarContext means they don't
have to be parsed, simplifying the code and avoiding the possibility of
parse failures.
@elucash
Copy link
Member

elucash commented May 22, 2023

thank you for PR! Sorry for replying only now, I've seen the PR before, but didn't have any time to look into it. So, overall, I agree that it it might be a good change, however, I believe it was such arcane re-parsing was for a reason, it was a workaround for a series of problems with not properly reported generic information in old versions of compilers (somewhere during Java 1.6-1.8) and not yet-generated-types giving errors. It's possible that with current compilers these workarounds might not be necessary (actually, experimenting / prototyping Immutables 3 there's definitely an intention to all that trickery out). But I'm just hesitant to just making the change to not break some rare case.
(EDIT solves #1454)

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.

None yet

2 participants