/** * {@inheritDoc} */ @Override public void visitMaxs(int maxStack, int maxLocals) { // the definition of the end of the try block Label tryBlockEnd = new Label(); visitLabel(tryBlockEnd); // setup for the finally block super.visitTryCatchBlock(tryBlockStart, tryBlockEnd, finallyHandler, null); visitLabel(finallyHandler); // only generate the throw in body if exception sensor is active if (enhancedExceptionSensor) { // duplicate exception and call dup(); generateThrowInBodyCall(); } // generate code for calling after // push created object and call // this object or null if's static if (isStatic) { pushNull(); } else { loadThis(); } generateAfterBodyCall(); mv.visitInsn(ATHROW); // update the max stack stuff super.visitMaxs(maxStack, maxLocals); }