Skip to content

Commit dbb22c3

Browse files
committed
Incorrect Java version check
The dotty implementation of Properties.isJavaAtLeast is broken for Java 9 (Fixed in Scalac at scala/scala#5276, but maybe we just shouldn't have a copy of Properties.scala in Dotty). The test is useless now anyway since we only compile with 2.12 which requires Java 8, so this code is never going to run on an older version of the JVM.
1 parent 657385b commit dbb22c3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/src/dotty/tools/dotc/config/CompilerCommand.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ object CompilerCommand extends DotClass {
118118
else if (settings.version.value) {
119119
ctx.echo(versionMsg)
120120
Nil
121-
} else if (!Properties.isJavaAtLeast("1.8")) {
122-
ctx.error("Dotty requires Java 8 to run")
123-
Nil
124121
}
125122
else if (shouldStopWithInfo) {
126123
ctx.echo(infoMessage)

0 commit comments

Comments
 (0)