Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Question about AspectJ compiler & class files

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yenny Rusli wrote:
> I have several regular java classes and several aspectJ classes
> that crosscut the java classes. I am wondering if I can see the
> result of the weaving?  
> 
> For example, if I have a helloWorld.java, and then I create some
> pointcuts, methods, and variables in helloWolrdAspect.java, is it
> possible for me to get the combined source code for these 2
> classes?   
This is not possible with the ajc compiler. However, you can download
some arbitrary decompiler and give it a go. I personaliy use Dava,
which comes with Soot from McGill unversity. They have even an
Eclipse plugin that let's you just right click on a compilation unit
and decompile the associated binaries.
 
> Right now I notice that the .class files corresponds to how big the
> original files are, with no weaving involved. So I am curious if I
> am missing something here - because I didn't find any compiled
> weaved classes?   
This is odd. If you pointcuts match anything in the code, there
should indeed be at least a slight difference in size.

Eric

- -- 
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQkEd2MwiFCm7RlWCEQJhZwCgl9ynT3RR7MMUpFFg1qQjyf7QHnwAnjIX
Pi7TNwo65trQU33Sb9Fc83GM
=ASqQ
-----END PGP SIGNATURE-----




Back to the top