ADDITIONAL SYSTEM INFORMATION :
"C:\Program Files\Java\jdk-12.0.2\bin\java" -version
java version "12.0.2" 2019-07-16
Java(TM) SE Runtime Environment (build 12.0.2+10)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
Compile any Java source file as follows:
javac -g -source 11 -target 11 -Xlint:all -classpath classes -d classes -sourcepath src src\Any.java
Following warning appears:
warning: [options] bootstrap class path not set in conjunction with -source 11
javac cross compile option says:
This [-bootclasspath] can only be used when compiling for versions prior to JDK 9. As applicable, see the descriptions in --release, -source, or -target for details.
Therefore this warning is incorrect since -source and -target are set to 11.
REGRESSION : Last worked in version 12.0.2
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See description above.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
See description above.
ACTUAL -
See description above.
---------- BEGIN SOURCE ----------
See description above.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Use Java SE 11.0.4
FREQUENCY : always
"C:\Program Files\Java\jdk-12.0.2\bin\java" -version
java version "12.0.2" 2019-07-16
Java(TM) SE Runtime Environment (build 12.0.2+10)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
Compile any Java source file as follows:
javac -g -source 11 -target 11 -Xlint:all -classpath classes -d classes -sourcepath src src\Any.java
Following warning appears:
warning: [options] bootstrap class path not set in conjunction with -source 11
javac cross compile option says:
This [-bootclasspath] can only be used when compiling for versions prior to JDK 9. As applicable, see the descriptions in --release, -source, or -target for details.
Therefore this warning is incorrect since -source and -target are set to 11.
REGRESSION : Last worked in version 12.0.2
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See description above.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
See description above.
ACTUAL -
See description above.
---------- BEGIN SOURCE ----------
See description above.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Use Java SE 11.0.4
FREQUENCY : always
- relates to
-
JDK-8231176 Test tools/javac/options/BCPOrSystemNotSpecified.java broken on Windows
-
- Resolved
-