Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] coverage, decompile, recompile

Jules,

This is a known problem with AspectJ.  The following link should get you to
the bug report:

	https://bugs.eclipse.org/bugs/show_bug.cgi?id=46298

One alternative approach you could take is to re-name your .aj files to
.java and the aspectj compiler will work fine.

Ron

-----Original Message-----
From: Jules Gosnell [mailto:jules@xxxxxxxxxxxxxxxxxx] 
Sent: Friday, May 28, 2004 10:32 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] coverage, decompile, recompile



Because AspectJ compiles directly from .aj to .class with no 
intermediate .java stage, I am currently thwarted in my efforts to run 
e.g. Clover over my codebase to do coverage testing.

Clover only understands Java (AFAIK).

I guess this must be the situation for a number of useful tools.

I recently had the idea of compiling .aj to .class, decompiling .class 
to .java and then recompiling .java back to .class with clover...

Needless to say this was wishful thinking (I used the latest JAD, which 
wasn't happy with the version of my class files). The first 
recompilation error, of many, turned out to be an inner class that had 
got lost - further investiation revealed that jad had failed to 
decompile it :
 
WEB-INF/classes/org/codehaus/wadi/jetty/Manager$HouseKeeper.class...The 
class file version is 48.0 (only 45.3, 46.0 and 47.0 are supported)
  Generating jad/org/codehaus/wadi/jetty/Manager$HouseKeeper.java
Couldn't resolve all access$ methods in method run

Has anyone else tried anything like this ?

Is it possible to decompile Aspectj programs back into Java, or do they 
contain untranslatable bytecode ?

Is there a better decompiler around ?

Cheers,


Jules


-- 
/**********************************
  * Jules Gosnell
  * Partner
  * Core Developers Network (Europe)
  *
  *    www.coredevelopers.net
  *
  * Open Source Training & Support.
  **********************************/

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users
 
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.


Back to the top