Skip to content

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

odersky added 2 commits July 8, 2022 11:50
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