langtools/test/jdk/jshell/UITesting.java
changeset 44821 c436e60e7af8
parent 44811 32c15978a3af
child 45757 1017cd5d6506
equal deleted inserted replaced
44820:d3379f475bf4 44821:c436e60e7af8
    53                     System.out.print((char) b);
    53                     System.out.print((char) b);
    54                     out.append((char) b);
    54                     out.append((char) b);
    55                     out.notifyAll();
    55                     out.notifyAll();
    56                 }
    56                 }
    57             }
    57             }
       
    58             @Override public void write(byte[] b, int off, int len) throws IOException {
       
    59                 synchronized (out) {
       
    60                     String data = new String(b, off, len);
       
    61                     System.out.print(data);
       
    62                     out.append(data);
       
    63                     out.notifyAll();
       
    64                 }
       
    65             }
    58         });
    66         });
    59         Thread runner = new Thread(() -> {
    67         Thread runner = new Thread(() -> {
    60             try {
    68             try {
    61                 JavaShellToolBuilder.builder()
    69                 JavaShellToolBuilder.builder()
    62                         .in(input, input)
    70                         .in(input, input)