Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Can I use the weaver from AspectJ 1.6.9 on JRE 1.4

Unfortunately, since AspectJ 1.6.6, the weaver is now written using
java5 features (see
http://www.eclipse.org/aspectj/doc/released/README-166.html ).  This
means the class files for 1.6.6 onwards will only run on 1.5 or later.
 I guess you could use something like
http://retroweaver.sourceforge.net/ to change the weaver to run on 1.4
- but I haven't tried it.

> Can I compile using Jdk 1.6 and
> iajc(AjcTask) in aspectjtools.jar of Aspect 1.6.9?

Yes, compilation is no problem, and the output from the weaver (when
compile time weaving) will run on any VM back to 1.1.  But you can't
use the loadtime weaver on a 1.4 vm, you will get an error about
unsupported class version.

If you try retroweaver and it works, let me know!

cheers
Andy

On 2 September 2010 21:36, Choudary Kothapalli
<choudary.kothapalli@xxxxxxxxx> wrote:
> Hi,
>
> My tool MaintainJ captures the runtime call trace using the load time
> weaving mechanism. I use around advice to capture the call trace. My aspect
> code (which is packaged as a jar) needs to run on JRE 1.4, 1.5 and 1.6.
>
> Can I use the aspectjweaver.jar from Aspect 1.6.9 for this purpose? If I
> can, how should I compile my aspects? Can I compile using Jdk 1.6 and
> iajc(AjcTask) in aspectjtools.jar of Aspect 1.6.9?
>
> Thanks,
> Choudary Kothapalli.
>
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
>


Back to the top