changeset 3139:0e63eea50dd7

8141104: jdk.jshell.TaskFactory code for java.specification.version = 1.9 should be adjusted for Verona Reviewed-by: ksrini, jlahoda
author iris
date Thu, 19 Nov 2015 13:23:32 -0800
parents ac125016e012
children cda7ebfe711e
files src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java	Mon Nov 16 17:10:23 2015 -0800
+++ b/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java	Thu Nov 19 13:23:32 2015 -0800
@@ -80,7 +80,7 @@
         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(