--- a/test/langtools/jdk/jshell/ToolTabSnippetTest.java Thu Nov 02 11:03:45 2017 -0700
+++ b/test/langtools/jdk/jshell/ToolTabSnippetTest.java Thu Nov 02 11:09:28 2017 -0700
@@ -23,7 +23,7 @@
/**
* @test
- * @bug 8177076 8185426
+ * @bug 8177076 8185426 8188072
* @modules
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.main
@@ -191,6 +191,10 @@
//no crash:
inputSink.write("\u0003new Stringbuil\011");
waitOutput(out, "\u0005new Stringbuil\u0007");
+
+ //no crash: 8188072
+ inputSink.write("\u0003for (int:\011");
+ waitOutput(out, "\u0005for \\(int:\u0007");
});
}