From 2804e200a2123db75e577ce75bda0b46200b27d6 Mon Sep 17 00:00:00 2001 From: Iris Clark Date: Thu, 19 Nov 2015 13:23:32 -0800 Subject: [PATCH] 8141104: jdk.jshell.TaskFactory code for java.specification.version = 1.9 should be adjusted for Verona Reviewed-by: ksrini, jlahoda --- .../src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langtools/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java b/langtools/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java index a95e7a60b8c..7f821e5d2a8 100644 --- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java +++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java @@ -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(