8141104: jdk.jshell.TaskFactory code for java.specification.version = 1.9 should be adjusted for Verona

Reviewed-by: ksrini, jlahoda
This commit is contained in:
Iris Clark 2015-11-19 13:23:32 -08:00
parent 26c71ec728
commit 2804e200a2

View File

@ -80,7 +80,7 @@ class TaskFactory {
if (compiler == null) {
throw new UnsupportedOperationException("Compiler not available, must be run with full JDK 9.");
}
if (!System.getProperty("java.specification.version").equals("1.9")) {
if (!System.getProperty("java.specification.version").equals("9")) {
throw new UnsupportedOperationException("Wrong compiler, must be run with full JDK 9.");
}
this.fileManager = new MemoryFileManager(