-
Notifications
You must be signed in to change notification settings - Fork 21
scala.tools.nsc.javac.JavaParsers can't parse JDK17 "Sealed Classes" #12159
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
scala.tools.nsc.javac.JavaParsers can't parse JDK17 "Sealed Classes" #12159
Comments
Not really sure if this is somehow related, but ASM 9.0, which brings support for Java 15 and even Java 16 already just got released: |
@mkurz this ticket is about mixed compilation of Scala and Java sources. ASM involves JVM bytecode only, not Java source code. (regardless, thanks for calling the ASM upgrade to our attention, we'll evaluate that soon, plus I'll be embarking on scala/community-build#1225 soon.) |
it would make sense to tackle this and #12171 together |
@SethTisue Please also don't forget #11908 😉 |
Sealed Classes (JEP 409) was just merged into the Java 17 dev repo:
|
reproduction steps
https://openjdk.java.net/jeps/360
https://github.com/scala/scala/blob/v2.13.3/src/compiler/scala/tools/nsc/javac/JavaParsers.scala#L1002
build.sbt
A.java
C.scala
sbt version: 1.3.13
problem
run
sbt compile
workaround
note
similar issue #11908
The text was updated successfully, but these errors were encountered: