Skip to content

Build of IgnoreSuite uses the latest class file version supported by the JDK #868

Closed
@cushon

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions