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

Don't check import selectors for Java code #15617

Merged
merged 2 commits into from
Jul 20, 2022
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 8, 2022

Moving import selector checking from PostTyper to Typer had the
side-effect that they were also checked in Java code. But that does
not work since the Java files are compiled before the Scala files
so the selected reference has not been seen yet.

Fixed by disabling import selector checks for Java files.

Fixes #15608

Moving import selector checking from PostTyper to Typer had the
side-effect that they were also checked in Java code. But that does
not work since the Java files are compiled before the Scala files
so the selected reference has not been seen yet.

Fixed by disabling import selector checks for Java files.

Fixes scala#15608
@odersky odersky requested a review from Kordyjan July 8, 2022 15:05
@odersky odersky merged commit e8d081c into scala:main Jul 20, 2022
@odersky odersky deleted the fix-15608 branch July 20, 2022 11:06
@Kordyjan Kordyjan added this to the 3.2.1 milestone Aug 1, 2023
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.

Cannot access Scala companion object module from Java code
2 participants