13 ms·
What does this mean? They probably require JDK8 for compiling/building the class files, but can you target 1.7? See target flag for javac ( http://stackoverfl
by pas 10y ago
What does this mean?
They probably require JDK8 for compiling/building the class files, but can you target 1.7?
See target flag for javac ( http://stackoverflow.com/a/21206909 http://stackoverflow.com/a/21206909 )
- Nullabillity 10y agoAFAIK no, 2.12 does a lot to be compatible with equivalent native features of JVM 8. The way to target JVM 7 bytecode is to stick with Scala 2.11.
- deleted 10y ago[deleted]
- pjmlp 10y agoYou can only make use of the target flag when not making use of new bytecodes oder APIs introduced in a specific Java version. Scala 2.12 is replacing some of their own code with Java 8 new features, so they rely on a Java 8 compatible JVM. This will also prevent Scala 2.12 to target Android, because even Android N isn't 100% Java 8 compatible, specially the low level JVM features like invokedynamic and method handles are not supported on DEX format.