-
1. Re: Please help with CtConstructor.insertAfter function
maildt Aug 29, 2004 11:32 PM (in response to maildt)Sorry, the decompiled code is incorrect, here's the correct one:
(messed with other result)
public Options(Configuration configuration)
{
_L2:
return;
super();
// old code body start
...
// old code body ends
Object obj = null;
m_propertyFile = "my.properties";
System.out.println("ok");
if(true) goto _L2; else goto _L1
_L1:
}
Did I do something wrong here ?
Any help is appreciated.
Thanks
brian -
2. Re: Please help with CtConstructor.insertAfter function
chiba Aug 30, 2004 12:43 PM (in response to maildt)What problem did you see when you ran the
generated Options class? Verification error? -
3. Re: Please help with CtConstructor.insertAfter function
maildt Sep 1, 2004 10:02 AM (in response to maildt)I did try to use the modified Options class, and it worked as
it's supposed. Although I am still confused by the decompiled
code.
Thanks for your help.
maildt -
4. Re: Please help with CtConstructor.insertAfter function
chiba Sep 3, 2004 1:32 PM (in response to maildt)It works? That's good news. :)
Since the bytecode generated by Javassist
sometime does not look like bytecode generated
by javac, some decompilers are confused.
My understanding is that decompilers can translate
bytecode into Java source if the bytecode is the
output of javac. I think it's really difficult to decompile
*all* kinds of bytecode.
I'm trying to make Javassist generate the bytecode
that looks like one by javac as much as possible, though.