You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building with newer JDK versions, the class file outputs for Scala files in this project target JDK 8 bytecode, but Java files like ./munit/jvm/src/main/java/munit/IgnoreSuite.java are being built with the default javac flags and use the latest target version supported by the JVM.
Should the build be configured to use a consistent target version for the Java files?
Demo:
$ java -version
openjdk version "23.0.1" 2024-12-05
$ sbt compile
$ javap -v -p ./munit/jvm/target/scala-2.13/classes/munit/IgnoreSuite.class
...
major version: 67
The text was updated successfully, but these errors were encountered:
cushon
added a commit
to cushon/munit
that referenced
this issue
Jan 15, 2025
When building with newer JDK versions, the class file outputs for Scala files in this project target JDK 8 bytecode, but Java files like
./munit/jvm/src/main/java/munit/IgnoreSuite.java
are being built with the default javac flags and use the latest target version supported by the JVM.Should the build be configured to use a consistent target version for the Java files?
Demo:
The text was updated successfully, but these errors were encountered: