366367368369370371372373374375376
} catch (Exception e) { } } public void testIllegalFrameLocalArray() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitFrame(F_APPEND, 1, new Object[0], 0, null); fail(); } catch (Exception e) {
376377378379380381382383384385386
} catch (Exception e) { } } public void testIllegalFrameStackArray() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitFrame(F_SAME1, 0, null, 1, new Object[0]); fail(); } catch (Exception e) {
386387388389390391392393394395396
} catch (Exception e) { } } public void testIllegalFrameValue() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitFrame(F_FULL, 1, new Object[] { "LC;" }, 0, null); fail(); } catch (Exception e) {
401402403404405406407408409410411
} catch (Exception e) { } } public void testIllegalMethodInsn() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitInsn(-1); fail(); } catch (Exception e) {
411412413414415416417418419420421
} catch (Exception e) { } } public void testIllegalByteInsnOperand() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitIntInsn(BIPUSH, Integer.MAX_VALUE); fail(); } catch (Exception e) {
421422423424425426427428429430431
} catch (Exception e) { } } public void testIllegalShortInsnOperand() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitIntInsn(SIPUSH, Integer.MAX_VALUE); fail(); } catch (Exception e) {
431432433434435436437438439440441
} catch (Exception e) { } } public void testIllegalVarInsnOperand() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitVarInsn(ALOAD, -1); fail(); } catch (Exception e) {
441442443444445446447448449450451
} catch (Exception e) { } } public void testIllegalIntInsnOperand() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitIntInsn(NEWARRAY, 0); fail(); } catch (Exception e) {
451452453454455456457458459460461
} catch (Exception e) { } } public void testIllegalTypeInsnOperand() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); try { mv.visitTypeInsn(NEW, "[I"); fail(); } catch (Exception e) {
461462463464465466467468469470471
} catch (Exception e) { } } public void testIllegalLabelInsnOperand() { MethodVisitor mv = new CheckMethodAdapter(new EmptyVisitor()); mv.visitCode(); Label l = new Label(); mv.visitLabel(l); try { mv.visitLabel(l);