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

Only include accessible base classes in orDominator #16477

Merged
merged 2 commits into from
Dec 8, 2022

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 7, 2022

By joining union types we could previously uncover inaccessible base classes that could lead to access errors at runtime. We now filter out such classes when computing the orDominator.

Fixes #16474

By joining union types we could previously uncover inaccessible base classes that could
lead to access errors at runtime. We now filter out such classes when computing the orDominator.

Fixes scala#16474
@odersky
Copy link
Contributor Author

odersky commented Dec 7, 2022

It seems JSCompilationTests runs tests in tests/run but fails since there are Java
files. Moving to run-custom-args/fatal-warnings to evade this. Or is there some
other way we should disable JS tests on this?

@odersky odersky requested a review from smarter December 7, 2022 22:26
@odersky odersky self-assigned this Dec 7, 2022
@smarter
Copy link
Member

smarter commented Dec 7, 2022

You can skip a test when running with scala.js by adding as a first line in the test file:

// scalajs: --skip

For multi files test you can put in just one file like in https://github.com/lampepfl/dotty/blob/main/tests/run/java-longnames/Test_2.scala

Add a magical comment instead of moving test
@odersky
Copy link
Contributor Author

odersky commented Dec 7, 2022

@smarter Thanks for the tip!

@odersky odersky assigned smarter and unassigned odersky Dec 7, 2022
@smarter smarter added the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Dec 7, 2022
@smarter smarter enabled auto-merge December 7, 2022 23:01
@smarter smarter merged commit 49c73ed into scala:main Dec 8, 2022
@smarter smarter deleted the fix-16474 branch December 8, 2022 00:28
@Kordyjan Kordyjan added backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" and removed backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. labels Dec 22, 2022
@Kordyjan Kordyjan added backport:done This PR was successfully backported. and removed backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" labels Dec 22, 2022
@Kordyjan Kordyjan added this to the 3.3.0 milestone Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:done This PR was successfully backported.
Projects
None yet
3 participants