Skip to content

Latest versions of Zinc >=2.0.0-M16 cannot run on Java 11 #1696

Description

@lihaoyi

Zinc has updated from Scala 3.7.x to Scala 3.8.x, which results in updating the This is an issue in Mill as we support user code back to Java 11, and run the Java compiler in-process with Zinc in order to benefit from the hot-JVM performance. Bumped into this trying to upgrade Zinc in Mill (com-lihaoyi/mill#6963). We can probably work around it in Mill by dropping the hot-in-process-javac optimization for older versions of Java: older Java versions lose a bit of javac perf, but not the end of the world

For Scala compilation, however, we cannot feasibly fork the Scala compiler due to cold start performance overhead. So upgrading Zinc to Scala 3.8.x results in us losign the ability to compile Scala with Java <17

Not sure if this is intentional, reported it as an issue just in case. Feel free to close if it's intentional

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions