8161236: Runtime.Version.{compareTo, equals}IgnoreOpt should be renamed

Reviewed-by: alanb, rfield, ksrini
This commit is contained in:
Iris Clark 2016-07-21 07:43:17 -07:00
parent 99b03a1878
commit fa9af401fe

View File

@ -82,7 +82,7 @@ class TaskFactory {
throw new UnsupportedOperationException("Compiler not available, must be run with full JDK 9."); throw new UnsupportedOperationException("Compiler not available, must be run with full JDK 9.");
} }
Version current = Version.parse(System.getProperty("java.specification.version")); Version current = Version.parse(System.getProperty("java.specification.version"));
if (INITIAL_SUPPORTED_VER.compareToIgnoreOpt(current) > 0) { if (INITIAL_SUPPORTED_VER.compareToIgnoreOptional(current) > 0) {
throw new UnsupportedOperationException("Wrong compiler, must be run with full JDK 9."); throw new UnsupportedOperationException("Wrong compiler, must be run with full JDK 9.");
} }
this.fileManager = new MemoryFileManager( this.fileManager = new MemoryFileManager(