Class Constructor problem
Abdullah Odeh Al-Zaghameem <[email protected]> Thu, 7 May 2009 10:01:09 -0700 (PDT)
| Newsgroups | gmane.comp.jakarta.bcel.user |
|---|---|
| Message-ID | <[email protected]> |
--0-1259231561-1241715669=:61782 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi all, =A0 I am working=A0on a model that weave some code in classes bytecode at load-= time. I face the following problem regarding the class constructor!! : =A0 I tried first to modify the type of the=A0constructor argument by using [se= tArgumentType], but i got=A0a strange=A0response!!!!; i.e.=A0after saving b= ack the bytecode and browsing it using some java-decompilers, the construct= or's parameter type is still the same as the old one, at the new source cod= e, BUT it was changed in the constant pool!!. (the <init> signature is chan= ged)=A0I found no mental explanation for that tell now. =A0 Then, I tried to add a new constructor!! using BCEL, but I fail; I don't kn= ow if that because BCEL doesn't has=A0the suitable=A0APIs to do that, or it= s illigal to do such thing!!. =A0 Any comments and ideas will be appreciated so much. Thanks, A. O .Z=0A=0A=0A --0-1259231561-1241715669=:61782--