-
1. Re: javassist gen codes works decompiled only !
candide_kemmler Jun 12, 2004 12:04 PM (in response to candide_kemmler)I have more: I generate several classes using Javassist, all with that same signature which seems to cause so much trouble: guess what ? Some load successfully, others don't... I try to find out what makes them so different.
Now I have streamlined my tests to the maximum, and the problem seems to lie right in the very heart of the class bytecodes:
Class.forName ( "fractals.psychos.core.system.transfer.AddressData" ).newInstance ();
System.out.println ( "successfully instanciated AddressData" );
Class.forName ( "fractals.psychos.core.system.transfer.DomainData" ).newInstance ();
System.out.println ( "successfully instanciated DomainData" );
Class.forName ( "fractals.psychos.core.system.transfer.UserData" ).newInstance ();
System.out.println ( "successfully instanciated UserData" );
Class.forName ( "fractals.psychos.core.system.transfer.UserInfo" ).newInstance ();
System.out.println ( "successfully instanciated UserInfo" );
Class.forName ( "fractals.psychos.core.media.transfer.ArticleData" ).newInstance ();
System.out.println ( "successfully instanciated ArticleData" );
Class.forName ( "fractals.psychos.core.media.transfer.ArticleInfo" ).newInstance ();
System.out.println ( "successfully instanciated ArticleInfo" );
.... etc
But it stops here, i.e. the class loader has a problem with the ArticleInfo class. Always the same problem: it's about the saveData ( Article, Session ) method. Note that the previous class, which loads successfully, has the exact same method.
Well, I don't know, but it looks like a Javassist bug, doesn't it ?
Oh, and I've tried that with both the 2.6 and the 3.0beta versions. No difference. -
2. Re: javassist gen codes works decompiled only !
chiba Jun 21, 2004 10:52 AM (in response to candide_kemmler)First, I would like to see the rest of this error message:
java.lang.VerifyError: (class: fractals/psychos/core/system/transfer/ApplicationInfo, method: saveData signature: (Lfractals/psychos/core/system/entity/Application; Lnet/sf/hibernate/Session;)V) Incompatible argument to function...
...
And the class file generated by Javassist.
Could you show a URL to that class file?