changeset 43586 | cc7a4eb79b29 |
parent 43134 | 006808ae5f6e |
child 44061 | d9ddf704d193 |
--- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java Mon Feb 06 15:57:35 2017 +0100 +++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java Mon Feb 06 09:00:02 2017 -0800 @@ -227,7 +227,7 @@ } private Tree.Kind guessKind(String code) { - ParseTask pt = proc.taskFactory.new ParseTask(code); + ParseTask pt = proc.taskFactory.parse(code); List<? extends Tree> units = pt.units(); if (units.isEmpty()) { return Tree.Kind.BLOCK;