jdk/test/java/util/concurrent/CopyOnWriteArrayList/EqualsRace.java
changeset 7518 0282db800fe1
parent 5506 202f599c92aa
child 7668 d4a77089c587
equal deleted inserted replaced
7517:7303bc0e78d6 7518:0282db800fe1
    64         else fail(x + " not equal to " + y);}
    64         else fail(x + " not equal to " + y);}
    65     public static void main(String[] args) throws Throwable {
    65     public static void main(String[] args) throws Throwable {
    66         try {realMain(args);} catch (Throwable t) {unexpected(t);}
    66         try {realMain(args);} catch (Throwable t) {unexpected(t);}
    67         System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed);
    67         System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed);
    68         if (failed > 0) throw new AssertionError("Some tests failed");}
    68         if (failed > 0) throw new AssertionError("Some tests failed");}
    69     private static abstract class CheckedThread extends Thread {
    69     private abstract static class CheckedThread extends Thread {
    70         public abstract void realRun() throws Throwable;
    70         public abstract void realRun() throws Throwable;
    71         public void run() {
    71         public void run() {
    72             try { realRun(); } catch (Throwable t) { unexpected(t); }}}
    72             try { realRun(); } catch (Throwable t) { unexpected(t); }}}
    73 }
    73 }