This content has been marked as final.
Show 3 replies
-
1. Re: VerifyError on javassist generated constructor
chiba Mar 23, 2005 10:08 PM (in response to jpschewe)$0 means "this". So maybe a right program is:
cons1.setBody("super((dome.interpretation.InterpretationFactory)$1, (dome.datamodel.FirstClassObject)$2);");
Note that the arguments are $1 and $2.however if I don't then the javassist compiler complains that it cannot find the appropriate method. This is also true in methods as well as constructors.
This is because the type of $0 is not what you expected. -
2. Re: VerifyError on javassist generated constructor
jpschewe Mar 24, 2005 8:23 AM (in response to jpschewe)That might help. I'll have to try that. The documentation states that $0...$n are arguments, so I figured that $0 is the first arg. Perhaps someone can update the docs to explain this.
-
3. Re: VerifyError on javassist generated constructor
chiba Mar 24, 2005 9:44 AM (in response to jpschewe)I see you misinterpreted the summary table of
special variables. I will update it to avoid such
misinterpretation.
Thank you for your suggestion.