8179002: jdk/jshell/MergedTabShiftTabExpressionTest.java fails intermittently
Summary: Handle incomming byte arrays in batches, to avoid unnecessary matching.
Reviewed-by: rfield
--- a/langtools/test/ProblemList.txt Fri Apr 21 13:58:57 2017 -0700
+++ b/langtools/test/ProblemList.txt Mon Apr 24 18:58:50 2017 +0200
@@ -36,7 +36,6 @@
#
# jshell
-jdk/jshell/MergedTabShiftTabExpressionTest.java 8179002 windows-i586
jdk/jshell/UserJdiUserRemoteTest.java 8173079 linux-all
jdk/jshell/UserInputTest.java 8169536 generic-all
--- a/langtools/test/jdk/jshell/UITesting.java Fri Apr 21 13:58:57 2017 -0700
+++ b/langtools/test/jdk/jshell/UITesting.java Mon Apr 24 18:58:50 2017 +0200
@@ -55,6 +55,14 @@
out.notifyAll();
}
}
+ @Override public void write(byte[] b, int off, int len) throws IOException {
+ synchronized (out) {
+ String data = new String(b, off, len);
+ System.out.print(data);
+ out.append(data);
+ out.notifyAll();
+ }
+ }
});
Thread runner = new Thread(() -> {
try {