java - Can scala code compiled with JDK 7 run on JVM 8? -
I have a project for many microservices scans I'm planning to go to Java 8, but Graydale Scala Due to the limitation of the plugin and the compatibility between Scala and Java 8, those micro services will still be compiled on JDK 7. My question is whether they will run on JVM 8 without any modifications or specific configuration?
Scala 2.11 which is still in progress, is not yet compatible with Java 8 bytecode. Although JVM 8 is backward compatible, so long as you are compiling your Scala code on JDK 7 and you drop it in JVM 8, then everything will work fine.
Maybe not applicable to you, but the latest Scala works only with JDK6 + 6, so nothing less than JDK 6.
Comments
Post a Comment