scala3
scala3 copied to clipboard
Add support for JEP-409 (sealed classes) + Add javacOpt directive
Closes #18533
This PR also adds the following directive to the vulpix infrastructure:
//> using javacOpt *
inspired by : https://scala-cli.virtuslab.org/docs/reference/directives#javac-options
The scala 2 ticket links to the two PRs which may be helpful. The tricky part was that if permitted subclasses is not specified, you have to discover them in the source, but without requiring too much typechecking.
https://github.com/scala/bug/issues/12171
Is this fix blocked by anything?
No
CI needs (at least) Java 21 to pass. Waiting for #18873.
There is a current syntax that is not yet migrated to cli-style just for avoiding old jvm.
./tests/run/t12348.scala:// test: -jvm 11+
There is a current syntax that is not yet migrated to cli-style just for avoiding old jvm.
./tests/run/t12348.scala:// test: -jvm 11+
I'm familiar with this directive. I want to run the test at least once in the CI with the correct JVM before adding this directive.