Compiler crashes when using macros in Scala 2.12 with JDK 13 #11608
Starting from JDK 13, compilation of some Scala classes that use third party libraries using macros behind the scenes causes the compiler to crash.
The compiler output can be seen here:
The JDK version is:
The Windows version is:
Here's a minimal, complete, verifiable example project to reproduce the crash:
referenced this issue
Jul 3, 2019
The scala compiler seems to be broken with JDK 13 EA and JDK 14 EA builds due to this issue so would be good to get this issue evaluated quickly. The change in JDK 13 is to fix the encoding (and decoding) of jrt file paths as URLs, which didn't work JDK 9 to JDK 12. I suspect scala.tools.nsc.classpath.JrtClassPath.asURLs really wants to return the URL "jrt:/" (to identify the run-time image), not "jrt:/packages" (invalid), but the bug wasn't caught previously.