Lines Matching defs:throwMode
2257 for (int throwMode = 0; throwMode < THROW_MODE_LIMIT; throwMode++) {
2258 testCatchException(int.class, new ClassCastException("testing"), throwMode, nargs);
2260 testCatchException(void.class, new java.io.IOException("testing"), throwMode, nargs);
2261 testCatchException(String.class, new LinkageError("testing"), throwMode, nargs);
2268 void testCatchException(Class<?> returnType, Throwable thrown, int throwMode, int nargs) throws Throwable {
2269 testCatchException(returnType, thrown, throwMode, nargs, 0);
2272 testCatchException(returnType, thrown, throwMode, nargs, catchDrops);
2292 void testCatchException(Class<?> returnType, Throwable thrown, int throwMode, int nargs, int catchDrops) throws Throwable {
2295 System.out.println("catchException rt="+returnType+" throw="+throwMode+" nargs="+nargs+" drops="+catchDrops);
2297 if (throwMode > THROW_CAUGHT) thrown = new UnsupportedOperationException("do not catch this");
2301 if (throwMode == THROW_THROUGH_ADAPTER) {
2315 Object arg1 = (throwMode == THROW_NOTHING) ? (Throwable) null : thrown;
2334 if (throwMode <= THROW_CAUGHT)
2335 assertEquals(THROW_UNCAUGHT, throwMode);
2338 assertCalled("throwOrReturn/"+(throwMode == THROW_NOTHING ? "normal" : "throw"), arg0, arg1);
2340 if (throwMode == THROW_NOTHING) {
2342 } else if (throwMode == THROW_CAUGHT) {