--- old/src/jdk.jshell/share/classes/jdk/jshell/JShell.java 2016-01-22 02:17:09.242136781 -0800 +++ new/src/jdk.jshell/share/classes/jdk/jshell/JShell.java 2016-01-22 02:17:09.003135114 -0800 @@ -346,10 +346,20 @@ * @see JShell#onShutdown(java.util.function.Consumer) */ public List eval(String input) throws IllegalStateException { - checkIfAlive(); - List events = eval.eval(input); - events.forEach(this::notifyKeyStatusEvent); - return Collections.unmodifiableList(events); + SourceCodeAnalysisImpl a = sourceCodeAnalysis; + if (a != null) { + a.suspendIndexing(); + } + try { + checkIfAlive(); + List events = eval.eval(input); + events.forEach(this::notifyKeyStatusEvent); + return Collections.unmodifiableList(events); + } finally { + if (a != null) { + a.resumeIndexing(); + } + } } /**