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

Filter out static forwarders for Java package private methods #14662

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

vasilmkd
Copy link
Contributor

Fixes #14624.

Thank you @smarter, from the bottom of my heart.

@@ -0,0 +1,12 @@
object MyClassValue extends ClassValue[String] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test isn't guaranteed to keep working since the JDK might add new public methods to ClassValue at any moment. Could you make a test with a custom .java file instead? To test separate compilation the java file needs to end with _1 and the scala file with _2 and both need to be in a subdirectory like in https://github.com/lampepfl/dotty/tree/main/tests/run/java-intersection (checkfile in https://github.com/lampepfl/dotty/blob/main/tests/run/java-intersection.check)

@vasilmkd vasilmkd force-pushed the java-package-private-forwarders branch from 3b8cab4 to cf71532 Compare March 10, 2022 22:38
@vasilmkd vasilmkd requested a review from smarter March 10, 2022 22:39
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@smarter smarter merged commit 895598f into scala:main Mar 11, 2022
@vasilmkd vasilmkd deleted the java-package-private-forwarders branch March 11, 2022 20:51
@Kordyjan Kordyjan added this to the 3.1.3 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.

A question about static forwarders for Java package private methods
3 participants