changeset 4124:3248e421620b

8179002: jdk/jshell/MergedTabShiftTabExpressionTest.java fails intermittently Summary: Handle incomming byte arrays in batches, to avoid unnecessary matching. Reviewed-by: rfield
author jlahoda
date Mon, 24 Apr 2017 18:58:50 +0200
parents d4a4dd242791
children f260f1a2acf6
files test/ProblemList.txt test/jdk/jshell/UITesting.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/ProblemList.txt	Fri Apr 21 13:58:57 2017 -0700
+++ b/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/test/jdk/jshell/UITesting.java	Fri Apr 21 13:58:57 2017 -0700
+++ b/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 {