File bsh2-asm.patch of Package bsh2
Index: BeanShell-2.0b5/src/bsh/ClassGeneratorUtil.java
===================================================================
--- BeanShell-2.0b5.orig/src/bsh/ClassGeneratorUtil.java 2010-08-09 13:47:18.951873609 +0200
+++ BeanShell-2.0b5/src/bsh/ClassGeneratorUtil.java 2010-08-09 13:47:21.344997553 +0200
@@ -303,7 +303,7 @@
static void generateField(
String fieldName, String type, int modifiers, ClassWriter cw )
{
- cw.visitField( modifiers, fieldName, type, null/*value*/ );
+ cw.visitField( modifiers, fieldName, type, null, null );
}
/**
@@ -327,7 +327,7 @@
// Generate method body
CodeVisitor cv = cw.visitMethod(
- modifiers, methodName, methodDescriptor, exceptions );
+ modifiers, methodName, methodDescriptor, exceptions, null );
if ( (modifiers & ACC_ABSTRACT) != 0 )
return;
@@ -405,7 +405,7 @@
// Create this constructor method
CodeVisitor cv =
- cw.visitMethod( modifiers, "<init>", methodDescriptor, exceptions );
+ cw.visitMethod( modifiers, "<init>", methodDescriptor, exceptions, null );
// Generate code to push arguments as an object array
generateParameterReifierCode( paramTypes, false/*isStatic*/, cv );
@@ -606,7 +606,7 @@
// Add method body
CodeVisitor cv = cw.visitMethod(
- modifiers, "_bshSuper"+methodName, methodDescriptor, exceptions );
+ modifiers, "_bshSuper"+methodName, methodDescriptor, exceptions, null );
cv.visitVarInsn(ALOAD, 0);
// Push vars