[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[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.
**********************************/