# HG changeset patch # User jlahoda # Date 1493053130 -7200 # Node ID c436e60e7af89256c7151a1c77e8c96c08de4ce0 # Parent d3379f475bf40ac995aa82b127613fdcb10c9b82 8179002: jdk/jshell/MergedTabShiftTabExpressionTest.java fails intermittently Summary: Handle incomming byte arrays in batches, to avoid unnecessary matching. Reviewed-by: rfield diff -r d3379f475bf4 -r c436e60e7af8 langtools/test/ProblemList.txt --- 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 diff -r d3379f475bf4 -r c436e60e7af8 langtools/test/jdk/jshell/UITesting.java --- 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 {