--- a/test/langtools/jdk/jshell/ToolTabSnippetTest.java Wed May 08 09:50:23 2019 +0000
+++ b/test/langtools/jdk/jshell/ToolTabSnippetTest.java Thu May 09 11:58:26 2019 +0200
@@ -23,7 +23,7 @@
/**
* @test
- * @bug 8177076 8185426 8189595 8188072
+ * @bug 8177076 8185426 8189595 8188072 8221759
* @modules
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.main
@@ -266,6 +266,15 @@
});
}
+ public void testCrash8221759() throws Exception {
+ doRunTest((inputSink, out) -> {
+ inputSink.write("java.io.File.path" + TAB);
+ waitOutput(out, "java.io.File.path\n" +
+ "pathSeparator pathSeparatorChar " +
+ REDRAW_PROMPT + "java.io.File.pathSeparator");
+ });
+ }
+
private Path prepareZip() {
String clazz1 =
"package jshelltest;\n" +