Release flag. Check conflicts with `-jvm-target'

This commit is contained in:
Mikhael Bogdanov
2021-11-10 12:33:58 +01:00
committed by Space
parent c2d17ded33
commit a062eb04ac
8 changed files with 70 additions and 36 deletions
@@ -0,0 +1,2 @@
error: `-Xrelease=11` option conflicts with '-jvm-target=10'.
COMPILATION_ERROR
@@ -0,0 +1,6 @@
package foo;
public class Foo {
val z: java.nio.ByteBuffer? = null
}
@@ -0,0 +1,2 @@
error: `-Xrelease=9` option conflicts with '-jvm-target=10'.
COMPILATION_ERROR
@@ -0,0 +1,6 @@
package foo;
public class Foo {
val z: java.nio.ByteBuffer? = null
}
@@ -1,2 +1,4 @@
error: `5` is not valid value for `-Xrelease` flag.
error: unknown JVM target version: 5
Supported versions: 1.6, 1.8, 9, 10, 11, 12, 13, 14, 15, 16, 17
COMPILATION_ERROR