Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Around advice: Superflous methods in generated code?

Hi!

During my bytecode investigations I found something that I assume to be a
bug (though not a severe one). If you have a look at the attached file, you
can see that all the code of the around advice is inlined, as it should be,
so no Closure is needed at all.
Though in the aspect class, there are two methods generated, namely
ajc$around$AroundFoo$86 and ajc$around$AroundFoo$86proceed that (I assume)
are the closure-counterpart of the parts. These two methods are never called
and should be eliminated.

That raises a second question: Probably the AJ compiler should use an
algorith for dead code elimination in general.

Eric

------------------------------------------------------------
Eric Bodden
Aachen University of Technology (RWTH)
ICQ UIN: 12656220
Website: http://www.bodden.de
PGP key: http://www.bodden.de/pub_key.asc

Attachment: SuperflousMethods.zip
Description: Zip compressed data


Back to the top