Skip to content

Can't use -release:8 with JDK8: 8 is not a valid choice for -release #13810

Closed
@arixmkii

Description

@arixmkii

Compiler version

3.1.0

Minimized code

Bash script showing issue with scalac

~ % java -version
openjdk version "1.8.0_302"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_302-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.302-b08, mixed mode)
~ % scalac -version
Scala compiler version 3.1.0 -- Copyright 2002-2021, LAMP/EPFL
~ % scalac -release:8 -help
8 is not a valid choice for -release
  scalac -help  gives more information

Output

8 is not a valid choice for -release

Expectation

Should accept the setting as this one should be safe to use.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions