-
-
Notifications
You must be signed in to change notification settings - Fork 156
Java 9 "object scala in compiler mirror not found" #234
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
Comments
I think @retronym might be able to point you in the right direction |
Please try upgrading to the latest minor version of Scala in the series you are using. http://docs.scala-lang.org/overviews/jdk-compatibility/overview.html These versions of Scala have code to read class files for the Java Standard Library from the new |
I'm using 2.12.4 I've tried also setting |
I've just tried a minimal project and was able to compile and run on Java 9.
Could you try that project on your machine? |
From the initial log, I saw 2 version of scala-library 2.12.4 & 2.12.0 in bootclasspath. The injection of the second scala-library could be caused by a "compilerPlugins". |
@retronym i tried your project and it works. Trying to see if i can reproduce, by adding more stuff to it from my project. Will report back if i can @davidB I noticed that as well, no idea where 2.12.0 comes from. I don't think that's the problem though. When I take that cmd line from debug and run in the terminal after removing 2.12.0 form bootclasspath it still fails |
@retronym @davidB I was able to reproduce it. https://github.com/NersesAM/scala-maven-java9 The problem seems to be because in that particular module I had code in Java, but tests were written in Scala. In that case |
that's exactly my use case. Hopefully this will be solved soon so I can still test my java code with some awesome scala ! |
@adridadou you can fix it by removing |
it worked! thank you very much! |
Sorry to throw in a comment on such an old issue. I had a similar issue upgrading to Scala 2.13. However, when I remove the execution the Java code can no longer see the Scala code. |
@jrgleason Please open a new issue where you make sure to provide a sample project to reproduces your issue. Prior to that, please make that's not simply a matter of a broken maven download and the scala-library jar in your local maven cache is corrupted. |
Ok will do thank you |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am trying to upgrade my project to Java 9 but scala-maven-plugin fails. Same project runs fine on Java 8.
Do you know what is going wrong here?
There was a similar issue in sbt and it was fixed in 0.13.17 scala/scala-xml#173
The text was updated successfully, but these errors were encountered: