Hello,

after using:

        ClassGen classGen = new ClassGen(jclass_);
        ConstantPoolGen poolGen = new
ConstantPoolGen(jclass_.getConstantPool());
        InstructionFactory instr = new InstructionFactory(classGen,
poolGen);

        classGen.addEmptyConstructor(Constants.ACC_PUBLIC);
        classGen.setClassName(name);

        JavaClass modifiedClass = classGen.getJavaClass();
        modifiedClass.dump(out);

and loading the class I encounter the following VerifyError:

java.lang.VerifyError: (class:
de/berlios/serijc/core/ReflectLinkHelper_modified, method: getLinkedTypesOld
signature: ()Ljava/util/List;) Incompatible type for getting or setting
field
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:1613)
        at java.lang.Class.getDeclaredMethods(Class.java:1102)
        at
de.berlios.serijc.test.TestReflectLinkHelper.test2(TestReflectLinkHelper.jav
a:121)
        at
de.berlios.serijc.test.TestReflectLinkHelper.doIt(TestReflectLinkHelper.java
:65)
        at
de.berlios.serijc.test.TestReflectLinkHelper.main(TestReflectLinkHelper.java
:57)
Exception in thread "main" 

Did I do something stupid?

Cheers,

Thomas


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to