scala-cli eagerly sets -release
/ -java-output-version
, which prevents compiling on new Java versions
#3115
Labels
Bloop
Issues tied with Bloop integration.
bug
Something isn't working
jvm
Issues tied to the JVM platform
scalac compatibility
Issues tied with compatibility with the scalac (compiler) command.
scala-cli compile
always sets-release N
(aka-java-output-version
on Scala 3) where N is the Java version.This prevents compiling on a Java version which is not yet known to the compiler:
I can manually set an older
-release
version, but then new API is not available:Invoking the compiler manually works, the compiler writes the classfile using the default version 52 (corresponds to Java 8):
@Gedochao mentioned that the flag might have been added due to some interaction with bloop (cc @kasiaMarek, @tgodzik)
The text was updated successfully, but these errors were encountered: