mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-17 13:55:20 +00:00
6751021: TEST_BUG: race condition in the test java/lang/Runtime/exec/Duped.java
Reviewed-by: alanb
This commit is contained in:
parent
bdd3171405
commit
1d6cc8fc42
@ -38,8 +38,7 @@ public class Duped {
|
||||
public static void main(String args[]) throws Exception {
|
||||
StringBuffer s = new StringBuffer();
|
||||
int c;
|
||||
while ((System.in.available() != 0)
|
||||
&& ((c = System.in.read()) != -1))
|
||||
while ((c = System.in.read()) != -1)
|
||||
s.append((char)c);
|
||||
System.out.println(s);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user