Skip to content

Is the documentation about the "-release" compiler flag correct? #2569

@dalbani

Description

@dalbani

From https://docs.scala-lang.org/overviews/compiler-options/index.html#targeting-a-version-of-the-jvm:

Targeting a version of the JVM

Applications or libraries targeting the JVM may wish to specify a target version.

The -release option specifies the target version, such as “8” or “18”.

But, on the other hand, from https://docs.scala-lang.org/overviews/compiler-options/index.html#:~:text=%2Drelease%20RELEASE%20or%20%2D%2Drelease%20RELEASE:

-release RELEASE or --release RELEASE
Compile for a specific version of the Java platform. Supported targets: 6, 7, 8, 9

So what are the supported targets? Only 6, 7, 8 and 9? Or also others?

Metadata

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