Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dalbani opened this issue Sep 28, 2022 · 2 comments
Closed

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

dalbani opened this issue Sep 28, 2022 · 2 comments

Comments

@dalbani
Copy link

dalbani commented Sep 28, 2022

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?

@dalbani
Copy link
Author

dalbani commented Sep 30, 2022

Just discovered scala/scala#9982, having a look.

@som-snytt
Copy link
Contributor

The confusion duplicates #1711

Worth adding, scalac -help is authoritative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants