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

Re-try to resolve types in java.lang #1477

Merged
merged 1 commit into from
Aug 27, 2023

Conversation

PtrTeixeira
Copy link
Contributor

Because java.lang types get automatically imported, they can be "resolved" without being resolved to the same thing that they are in the source file. This ultimately winds up preventing the generated code from compiling.

I'd love any guidance you're willing to give around this / around testing this out. Thank you!

Closes #1475

Because `java.lang` types get automatically imported, they can be
"resolved" without being resolved to the same thing that they are in the
source file. This ultimately winds up preventing the generated code from
compiling.
@elucash
Copy link
Member

elucash commented Aug 5, 2023

Thank you for PR! This should be important to fix this. Let me some time to understand the problem, the solution space and the specific fix in this PR. The fix looks good and quite compact, just need to understand how it all works together.

@elucash
Copy link
Member

elucash commented Aug 27, 2023

I'll merge it, but after investigation, might change the way it works, currently it's a bit enigmatic to me. Thank you!

@elucash elucash merged commit 27850d8 into immutables:master Aug 27, 2023
16 checks passed
elucash added a commit that referenced this pull request Aug 27, 2023
@elucash elucash added this to the 2.10.0 milestone Aug 27, 2023
@PtrTeixeira
Copy link
Contributor Author

Thank you!

@PtrTeixeira PtrTeixeira deleted the pt-resolve-java-lang branch September 7, 2023 14:49
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 imports for generated code that clashes with java.lang
2 participants