Java Code Examples for com.oracle.testlibrary.jsr292.Helper#IS_VERBOSE
The following examples show how to use
com.oracle.testlibrary.jsr292.Helper#IS_VERBOSE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CatchExceptionTest.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public TestFactory() { if (Helper.IS_THOROUGH) { maxArgs = maxDrops = CatchExceptionTest.MAX_ARITY; } else { maxArgs = MIN_TESTED_ARITY + Helper.RNG.nextInt(CatchExceptionTest.MAX_ARITY - MIN_TESTED_ARITY) + 1; maxDrops = MIN_TESTED_ARITY + Helper.RNG.nextInt(maxArgs - MIN_TESTED_ARITY) + 1; args = 1; } if (Helper.IS_VERBOSE) { System.out.printf("maxArgs = %d%nmaxDrops = %d%n", maxArgs, maxDrops); } constructorSize = TestCase.CONSTRUCTORS.size(); }
Example 2
Source File: CatchExceptionTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public TestFactory() { if (Helper.IS_THOROUGH) { maxArgs = maxDrops = CatchExceptionTest.MAX_ARITY; } else { maxArgs = MIN_TESTED_ARITY + Helper.RNG.nextInt(CatchExceptionTest.MAX_ARITY - MIN_TESTED_ARITY) + 1; maxDrops = MIN_TESTED_ARITY + Helper.RNG.nextInt(maxArgs - MIN_TESTED_ARITY) + 1; args = 1; } if (Helper.IS_VERBOSE) { System.out.printf("maxArgs = %d%nmaxDrops = %d%n", maxArgs, maxDrops); } constructorSize = TestCase.CONSTRUCTORS.size(); }
Example 3
Source File: CatchExceptionTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: {varArgs, noVarArgs} x * TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x * {0, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 0) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args < maxArgs) { dropArgs = 0; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 4
Source File: CatchExceptionTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public CatchExceptionTest(TestCase testCase, final boolean isVararg, final int argsCount, final int catchDrops) { this.testCase = testCase; this.dropped = catchDrops; if (Helper.IS_VERBOSE) { System.out.printf("CatchException::CatchException(%s, isVararg=%b " + "argsCount=%d catchDrops=%d)%n", testCase, isVararg, argsCount, catchDrops ); } MethodHandle thrower = testCase.thrower; int throwerLen = thrower.type().parameterCount(); List<Class<?>> classes; int extra = Math.max(0, argsCount - throwerLen); classes = getThrowerParams(isVararg, extra); this.argsCount = throwerLen + classes.size(); thrower = Helper.addTrailingArgs(thrower, this.argsCount, classes); if (isVararg && argsCount > throwerLen) { MethodType mt = thrower.type(); Class<?> lastParam = mt.parameterType(mt.parameterCount() - 1); thrower = thrower.asVarargsCollector(lastParam); } this.thrower = thrower; this.dropped = Math.min(this.argsCount, catchDrops); catcher = testCase.getCatcher(getCatcherParams()); nargs = Math.max(2, this.argsCount); }
Example 5
Source File: CatchExceptionTest.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: {varArgs, noVarArgs} x * TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x * {0, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 0) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args < maxArgs) { dropArgs = 0; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 6
Source File: CatchExceptionTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public CatchExceptionTest(TestCase testCase, final boolean isVararg, final int argsCount, final int catchDrops) { this.testCase = testCase; this.dropped = catchDrops; if (Helper.IS_VERBOSE) { System.out.printf("CatchException::CatchException(%s, isVararg=%b " + "argsCount=%d catchDrops=%d)%n", testCase, isVararg, argsCount, catchDrops ); } MethodHandle thrower = testCase.thrower; int throwerLen = thrower.type().parameterCount(); List<Class<?>> classes; int extra = Math.max(0, argsCount - throwerLen); classes = getThrowerParams(isVararg, extra); this.argsCount = throwerLen + classes.size(); thrower = Helper.addTrailingArgs(thrower, this.argsCount, classes); if (isVararg && argsCount > throwerLen) { MethodType mt = thrower.type(); Class<?> lastParam = mt.parameterType(mt.parameterCount() - 1); thrower = thrower.asVarargsCollector(lastParam); } this.thrower = thrower; this.dropped = Math.min(this.argsCount, catchDrops); catcher = testCase.getCatcher(getCatcherParams()); nargs = Math.max(2, this.argsCount); }
Example 7
Source File: CatchExceptionTest.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: {varArgs, noVarArgs} x * TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x * {0, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 0) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args < maxArgs) { dropArgs = 0; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 8
Source File: CatchExceptionTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: {varArgs, noVarArgs} x * TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x * {0, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 0) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args < maxArgs) { dropArgs = 0; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 9
Source File: CatchExceptionTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: * {varArgs, noVarArgs} x TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x {1, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 1) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args <= maxArgs) { dropArgs = 1; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 10
Source File: CatchExceptionTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: * {varArgs, noVarArgs} x TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x {0, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 0) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args < maxArgs) { dropArgs = 0; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 11
Source File: CatchExceptionTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: {varArgs, noVarArgs} x * TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x * {0, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 0) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args < maxArgs) { dropArgs = 0; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 12
Source File: CatchExceptionTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: {varArgs, noVarArgs} x * TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x * {0, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 0) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args < maxArgs) { dropArgs = 0; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 13
Source File: CatchExceptionTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: * {varArgs, noVarArgs} x TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x {1, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 1) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args <= maxArgs) { dropArgs = 1; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 14
Source File: CatchExceptionTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * @return next test from test matrix: {varArgs, noVarArgs} x * TestCase.rtypes x TestCase.THROWABLES x {1, .., maxArgs } x * {0, .., maxDrops} */ public CatchExceptionTest nextTest() { if (constructor < constructorSize) { return createTest(); } constructor = 0; count++; if (!Helper.IS_THOROUGH && count > Helper.TEST_LIMIT) { System.out.println("test limit is exceeded"); return null; } if (dropArgs <= currentMaxDrops) { if (dropArgs == 0) { if (Helper.IS_THOROUGH || Helper.RNG.nextBoolean()) { ++dropArgs; return createTest(); } else if (Helper.IS_VERBOSE) { System.out.printf( "argsCount=%d : \"drop\" scenarios are skipped%n", args); } } else { ++dropArgs; return createTest(); } } if (args < maxArgs) { dropArgs = 0; currentMaxDrops = Math.min(args, maxDrops); ++args; return createTest(); } return null; }
Example 15
Source File: CatchExceptionTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void runTest() { if (Helper.IS_VERBOSE) { System.out.printf("CatchException(%s, isVararg=%b argsCount=%d " + "dropped=%d)%n", testCase, thrower.isVarargsCollector(), argsCount, dropped); } Helper.clear(); Object[] args = Helper.randomArgs( argsCount, thrower.type().parameterArray()); Object arg0 = Helper.MISSING_ARG; Object arg1 = testCase.thrown; if (argsCount > 0) { arg0 = args[0]; } if (argsCount > 1) { args[1] = arg1; } Asserts.assertEQ(nargs, thrower.type().parameterCount()); if (argsCount < nargs) { Object[] appendArgs = {arg0, arg1}; appendArgs = Arrays.copyOfRange(appendArgs, argsCount, nargs); thrower = MethodHandles.insertArguments( thrower, argsCount, appendArgs); } Asserts.assertEQ(argsCount, thrower.type().parameterCount()); MethodHandle target = MethodHandles.catchException( testCase.filter(thrower), testCase.throwableClass, testCase.filter(catcher)); Asserts.assertEQ(thrower.type(), target.type()); Asserts.assertEQ(argsCount, target.type().parameterCount()); Object returned; try { returned = target.invokeWithArguments(args); } catch (Throwable ex) { if (CodeCacheOverflowProcessor.isThrowableCausedByVME(ex)) { // This error will be treated by CodeCacheOverflowProcessor // to prevent the test from failing because of code cache overflow. throw new Error(ex); } testCase.assertCatch(ex); returned = ex; } testCase.assertReturn(returned, arg0, arg1, dropped, args); }
Example 16
Source File: CatchExceptionTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private void runTest() { if (Helper.IS_VERBOSE) { System.out.printf("CatchException(%s, isVararg=%b argsCount=%d " + "dropped=%d)%n", testCase, thrower.isVarargsCollector(), argsCount, dropped); } Helper.clear(); Object[] args = Helper.randomArgs( argsCount, thrower.type().parameterArray()); Object arg0 = Helper.MISSING_ARG; Object arg1 = testCase.thrown; if (argsCount > 0) { arg0 = args[0]; } if (argsCount > 1) { args[1] = arg1; } Asserts.assertEQ(nargs, thrower.type().parameterCount()); if (argsCount < nargs) { Object[] appendArgs = {arg0, arg1}; appendArgs = Arrays.copyOfRange(appendArgs, argsCount, nargs); thrower = MethodHandles.insertArguments( thrower, argsCount, appendArgs); } Asserts.assertEQ(argsCount, thrower.type().parameterCount()); MethodHandle target = MethodHandles.catchException( testCase.filter(thrower), testCase.throwableClass, testCase.filter(catcher)); Asserts.assertEQ(thrower.type(), target.type()); Asserts.assertEQ(argsCount, target.type().parameterCount()); Object returned; try { returned = target.invokeWithArguments(args); } catch (Throwable ex) { if (CodeCacheOverflowProcessor.isThrowableCausedByVME(ex)) { // This error will be treated by CodeCacheOverflowProcessor // to prevent the test from failing because of code cache overflow. throw new Error(ex); } testCase.assertCatch(ex); returned = ex; } testCase.assertReturn(returned, arg0, arg1, dropped, args); }
Example 17
Source File: CatchExceptionTest.java From hottub with GNU General Public License v2.0 | 4 votes |
private void runTest() { if (Helper.IS_VERBOSE) { System.out.printf("CatchException(%s, isVararg=%b argsCount=%d " + "dropped=%d)%n", testCase, thrower.isVarargsCollector(), argsCount, dropped); } Helper.clear(); Object[] args = Helper.randomArgs( argsCount, thrower.type().parameterArray()); Object arg0 = Helper.MISSING_ARG; Object arg1 = testCase.thrown; if (argsCount > 0) { arg0 = args[0]; } if (argsCount > 1) { args[1] = arg1; } Asserts.assertEQ(nargs, thrower.type().parameterCount()); if (argsCount < nargs) { Object[] appendArgs = {arg0, arg1}; appendArgs = Arrays.copyOfRange(appendArgs, argsCount, nargs); thrower = MethodHandles.insertArguments( thrower, argsCount, appendArgs); } Asserts.assertEQ(argsCount, thrower.type().parameterCount()); MethodHandle target = MethodHandles.catchException( testCase.filter(thrower), testCase.throwableClass, testCase.filter(catcher)); Asserts.assertEQ(thrower.type(), target.type()); Asserts.assertEQ(argsCount, target.type().parameterCount()); Object returned; try { returned = target.invokeWithArguments(args); } catch (Throwable ex) { if (CodeCacheOverflowProcessor.isThrowableCausedByVME(ex)) { // This error will be treated by CodeCacheOverflowProcessor // to prevent the test from failing because of code cache overflow. throw new Error(ex); } testCase.assertCatch(ex); returned = ex; } testCase.assertReturn(returned, arg0, arg1, dropped, args); }
Example 18
Source File: CatchExceptionTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void runTest() { if (Helper.IS_VERBOSE) { System.out.printf("CatchException(%s, isVararg=%b argsCount=%d " + "dropped=%d)%n", testCase, thrower.isVarargsCollector(), argsCount, dropped); } Helper.clear(); Object[] args = Helper.randomArgs( argsCount, thrower.type().parameterArray()); Object arg0 = Helper.MISSING_ARG; Object arg1 = testCase.thrown; if (argsCount > 0) { arg0 = args[0]; } if (argsCount > 1) { args[1] = arg1; } Asserts.assertEQ(nargs, thrower.type().parameterCount()); if (argsCount < nargs) { Object[] appendArgs = {arg0, arg1}; appendArgs = Arrays.copyOfRange(appendArgs, argsCount, nargs); thrower = MethodHandles.insertArguments( thrower, argsCount, appendArgs); } Asserts.assertEQ(argsCount, thrower.type().parameterCount()); MethodHandle target = MethodHandles.catchException( testCase.filter(thrower), testCase.throwableClass, testCase.filter(catcher)); Asserts.assertEQ(thrower.type(), target.type()); Asserts.assertEQ(argsCount, target.type().parameterCount()); Object returned; try { returned = target.invokeWithArguments(args); } catch (Throwable ex) { if (CodeCacheOverflowProcessor.isThrowableCausedByVME(ex)) { // This error will be treated by CodeCacheOverflowProcessor // to prevent the test from failing because of code cache overflow. throw new Error(ex); } testCase.assertCatch(ex); returned = ex; } testCase.assertReturn(returned, arg0, arg1, dropped, args); }
Example 19
Source File: CatchExceptionTest.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void runTest() { if (Helper.IS_VERBOSE) { System.out.printf("CatchException(%s, isVararg=%b argsCount=%d " + "dropped=%d)%n", testCase, thrower.isVarargsCollector(), argsCount, dropped); } Helper.clear(); Object[] args = Helper.randomArgs( argsCount, thrower.type().parameterArray()); Object arg0 = Helper.MISSING_ARG; Object arg1 = testCase.thrown; if (argsCount > 0) { arg0 = args[0]; } if (argsCount > 1) { args[1] = arg1; } Asserts.assertEQ(nargs, thrower.type().parameterCount()); if (argsCount < nargs) { Object[] appendArgs = {arg0, arg1}; appendArgs = Arrays.copyOfRange(appendArgs, argsCount, nargs); thrower = MethodHandles.insertArguments( thrower, argsCount, appendArgs); } Asserts.assertEQ(argsCount, thrower.type().parameterCount()); MethodHandle target = MethodHandles.catchException( testCase.filter(thrower), testCase.throwableClass, testCase.filter(catcher)); Asserts.assertEQ(thrower.type(), target.type()); Asserts.assertEQ(argsCount, target.type().parameterCount()); Object returned; try { returned = target.invokeWithArguments(args); } catch (Throwable ex) { if (CodeCacheOverflowProcessor.isThrowableCausedByVME(ex)) { // This error will be treated by CodeCacheOverflowProcessor // to prevent the test from failing because of code cache overflow. throw new Error(ex); } testCase.assertCatch(ex); returned = ex; } testCase.assertReturn(returned, arg0, arg1, dropped, args); }
Example 20
Source File: CatchExceptionTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private void runTest() { if (Helper.IS_VERBOSE) { System.out.printf("CatchException(%s, isVararg=%b argsCount=%d " + "dropped=%d)%n", testCase, thrower.isVarargsCollector(), argsCount, dropped); } Helper.clear(); Object[] args = Helper.randomArgs( argsCount, thrower.type().parameterArray()); Object arg0 = Helper.MISSING_ARG; Object arg1 = testCase.thrown; if (argsCount > 0) { arg0 = args[0]; } if (argsCount > 1) { args[1] = arg1; } Asserts.assertEQ(nargs, thrower.type().parameterCount()); if (argsCount < nargs) { Object[] appendArgs = {arg0, arg1}; appendArgs = Arrays.copyOfRange(appendArgs, argsCount, nargs); thrower = MethodHandles.insertArguments( thrower, argsCount, appendArgs); } Asserts.assertEQ(argsCount, thrower.type().parameterCount()); MethodHandle target = MethodHandles.catchException( testCase.filter(thrower), testCase.throwableClass, testCase.filter(catcher)); Asserts.assertEQ(thrower.type(), target.type()); Asserts.assertEQ(argsCount, target.type().parameterCount()); Object returned; try { returned = target.invokeWithArguments(args); } catch (Throwable ex) { if (CodeCacheOverflowProcessor.isThrowableCausedByVME(ex)) { // This error will be treated by CodeCacheOverflowProcessor // to prevent the test from failing because of code cache overflow. throw new Error(ex); } testCase.assertCatch(ex); returned = ex; } testCase.assertReturn(returned, arg0, arg1, dropped, args); }