Print this page


Split Close
Expand all
Collapse all
          --- old/test/java/util/concurrent/BlockingQueue/Interrupt.java
          +++ new/test/java/util/concurrent/BlockingQueue/Interrupt.java
↓ open down ↓ 128 lines elided ↑ open up ↑
 129  129      static void fail(String msg) {System.out.println(msg); fail();}
 130  130      static void unexpected(Throwable t) {failed++; t.printStackTrace();}
 131  131      static void check(boolean cond) {if (cond) pass(); else fail();}
 132  132      static void equal(Object x, Object y) {
 133  133          if (x == null ? y == null : x.equals(y)) pass();
 134  134          else fail(x + " not equal to " + y);}
 135  135      public static void main(String[] args) throws Throwable {
 136  136          try {realMain(args);} catch (Throwable t) {unexpected(t);}
 137  137          System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed);
 138  138          if (failed > 0) throw new AssertionError("Some tests failed");}
 139      -    private static abstract class Fun {abstract void f() throws Throwable;}
      139 +    private abstract static class Fun {abstract void f() throws Throwable;}
 140  140  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX