726727728729730731732733734735736
} catch (Exception e) { } } public void testIllegalMethodInsnName2() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitMethodInsn(INVOKEVIRTUAL, "C", "a-", "()V"); fail(); } catch (Exception e) {
736737738739740741742743744745746
} catch (Exception e) { } } public void testIllegalMethodInsnNullDesc() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitMethodInsn(INVOKEVIRTUAL, "C", "m", null); fail(); } catch (Exception e) {
746747748749750751752753754755756
} catch (Exception e) { } } public void testIllegalMethodInsnDesc() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitMethodInsn(INVOKEVIRTUAL, "C", "m", "I"); fail(); } catch (Exception e) {
756757758759760761762763764765766
} catch (Exception e) { } } public void testIllegalMethodInsnParameterDesc() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitMethodInsn(INVOKEVIRTUAL, "C", "m", "(V)V"); fail(); } catch (Exception e) {
766767768769770771772773774775776
} catch (Exception e) { } } public void testIllegalMethodInsnReturnDesc() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitMethodInsn(INVOKEVIRTUAL, "C", "m", "()VV"); fail(); } catch (Exception e) {
776777778779780781782783784785786
} catch (Exception e) { } } public void testIllegalLdcInsnOperand() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitLdcInsn(new Object()); fail(); } catch (Exception e) {
786787788789790791792793794795796
} catch (Exception e) { } } public void testIllegalMultiANewArrayDesc() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitMultiANewArrayInsn("I", 1); fail(); } catch (Exception e) {
796797798799800801802803804805806
} catch (Exception e) { } } public void testIllegalMultiANewArrayDims() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitMultiANewArrayInsn("[[I", 0); fail(); } catch (Exception e) {
806807808809810811812813814815816
} catch (Exception e) { } } public void testIllegalMultiANewArrayDims2() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitMultiANewArrayInsn("[[I", 3); fail(); } catch (Exception e) {
816817818819820821822823824825826
} catch (Exception e) { } } public void testIllegalTryCatchBlock() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); Label m = new Label(); Label n = new Label(); mv.visitLabel(m); try {