-Xjdk-release. Review fixes
This commit is contained in:
+3
-2
@@ -35,8 +35,9 @@ where advanced options include:
|
||||
-Xjava-package-prefix Package prefix for Java files
|
||||
-Xjava-source-roots=<path> Paths to directories with Java source files
|
||||
-Xjavac-arguments=<option[,]> Java compiler arguments
|
||||
-Xjdk-release=<version> Compile against specified JDK API. Requires JDK 9 or newer.
|
||||
Supported versions depend on used JDK (For JDK 17 supported targets are 1.8, 9, 10 - 17). Also set `-jvm-target` value
|
||||
-Xjdk-release=<version> Compile against the specified JDK API version, similarly to javac's `-release`. Requires JDK 9 or newer.
|
||||
Supported versions depend on the used JDK; for JDK 17+ supported versions are 1.8, 9, 10, ..., 17.
|
||||
Also sets `-jvm-target` value equal to the selected JDK version
|
||||
-Xjspecify-annotations=ignore|strict|warn
|
||||
Specify behavior for jspecify annotations.
|
||||
Default value is 'warn'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
error: `-Xrelease=11` option conflicts with '-jvm-target=10'.
|
||||
error: '-Xjdk-release=11' option conflicts with '-jvm-target 10'. Please remove the '-jvm-target' option
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
error: `-Xrelease=9` option conflicts with '-jvm-target=10'.
|
||||
error: '-Xjdk-release=9' option conflicts with '-jvm-target 10'. Please remove the '-jvm-target' option
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
error: `5` is not valid value for `-Xrelease` flag.
|
||||
error: unknown JDK release version: 5
|
||||
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