There are several auxilliary attributes in a class file, not
directly
related to code. BCEL is probably stripping some of those,
altho off the top of my head, i don't have a definitive
list.
----- Original Message -----
From: "Marc Hull (Imperial College)"
<mfh02 doc.ic.ac.uk>
To: <bcel-user jakarta.apache.org>
Sent: Tuesday, September 05, 2006 7:50 PM
Subject: Classes getting smaller
> Hi all,
> Sorry if this has come up before - I'm new to BCEL and
searched the
> archives but couldn't find an answer to this. I've
been trying to
> instrument classes in rt.jar and have noticed that
merely running those
> classes through BCEL (i.e. loading the class file into
BCEL then writing
> the class file back again) produces smaller class files
than the originals
> in many cases, but running javap over them produces the
same result and
> both seem to behave in the same way. Any ideas what was
in the original
> class files that is seemingly stripped by BCEL? So far
I've only
> encountered this with classes in rt.jar, not other
libraries.
>
> Best wishes,
> Marc Hull (mfh02 doc.ic.ac.uk)
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: bcel-user-unsubscribe jakarta.apache.org
> For additional commands, e-mail: bcel-user-help jakarta.apache.org
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: bcel-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: bcel-user-help jakarta.apache.org
|