mv.visitMaxs(0, 0);
mv.visitEnd();
}
private void bridgeMethod(final ClassWriter cw) {
MethodVisitor mv = cw.visitMethod(ACC_PUBLIC,
"get",
"(I)Ljava/lang/String;",
null,
null);
mv.visitCode();
mv.visitVarInsn(ALOAD, 0);
mv.visitVarInsn(ILOAD, 1);
mv.visitMethodInsn(INVOKESPECIAL,
"java/util/ArrayList",
"get",
"(I)Ljava/lang/Object;");
mv.visitTypeInsn(CHECKCAST, "java/lang/String");
mv.visitInsn(ARETURN);
mv.visitMaxs(0, 0);
mv.visitEnd();
mv = cw.visitMethod(ACC_PUBLIC + ACC_BRIDGE + ACC_SYNTHETIC,
"get",
"(I)Ljava/lang/Object;",
"(I)TE;",
null);
mv.visitCode();
mv.visitVarInsn(ALOAD, 0);
mv.visitVarInsn(ILOAD, 1);
mv.visitMethodInsn(INVOKEVIRTUAL,
"pkg/Insns",
"get",
"(I)Ljava/lang/String;");
mv.visitInsn(ARETURN);
mv.visitMaxs(0, 0);
mv.visitEnd();
}