Release flag. Check conflicts with `-jvm-target'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user