test/tools/javac/lambdaShapes/org/openjdk/tests/separate/TestHarness.java

changeset 2170
860f1d21763a
parent 1448
7d34e91f66bb
child 2174
62a67e0875ff
equal deleted inserted replaced
2169:667843bd2193 2170:860f1d21763a
298 fail("Exception should have been thrown"); 298 fail("Exception should have been thrown");
299 } catch (InvocationTargetException | IllegalAccessException e) { 299 } catch (InvocationTargetException | IllegalAccessException e) {
300 if (verboseLocal.get() == Boolean.TRUE) { 300 if (verboseLocal.get() == Boolean.TRUE) {
301 System.out.println(e.getCause()); 301 System.out.println(e.getCause());
302 } 302 }
303 assertEquals(e.getCause().getClass(), exceptionType); 303 assertTrue(exceptionType.isAssignableFrom(e.getCause().getClass()));
304 } 304 }
305 compiler.cleanup(); 305 compiler.cleanup();
306 } 306 }
307 307
308 /** 308 /**

mercurial