Build of IgnoreSuite uses the latest class file version supported by the JDK #868
Closed
Description
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
Metadata
Assignees
Labels
No labels