Skip to content

Conversation

@xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Nov 28, 2025

No description provided.

Copy link
Member

@hamzaremmal hamzaremmal left a comment

Choose a reason for hiding this comment

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

Hi @xuwei-k, thanks for taking care of this. I left a few comments for some improvements.

null
}
try {
MethodHandles
Copy link
Member

Choose a reason for hiding this comment

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

There is no need to go via MethodHandles anymore, we can call the method directly here.


if scala.util.Properties.isJavaAtLeast("16") then
tests ::= compileFilesInDir("tests/pos-java16+", defaultOptions.and("-Wsafe-init"))
tests ::= compileFilesInDir("tests/pos-java16+", defaultOptions.and("-Wsafe-init"))
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's worth moving all the tests to the tests/pos folder and delete the tests/pos-java16+ folder.

Copy link
Contributor

Choose a reason for hiding this comment

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

There is a test pseudo-directive // test: -jvm 11+ for limiting the jvm version as necessary.

@hamzaremmal
Copy link
Member

Also, I have a branch somewhere that I need to push that cleans up some of the properties we use for testing, like usingScalaLibraryTasty, usingScalaLibraryCCTasty,... These changes can be omitted here.

@xuwei-k xuwei-k force-pushed the compiler-test-isJavaAtLeast branch from a02ffa4 to a73b22e Compare November 30, 2025 06:10
@xuwei-k xuwei-k force-pushed the compiler-test-isJavaAtLeast branch from a73b22e to ce392ba Compare December 1, 2025 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants