HJW
HJW

Reputation: 23443

Which version of AspectJ is suitable for Java 1.4.2?

I can seem to find an guide for 1.4.2 compatibility.

Can someone who is good in AOP give me a heads up.

http://www.eclipse.org/aspectj/downloads.php

Upvotes: 1

Views: 502

Answers (2)

Cygnusx1
Cygnusx1

Reputation: 5409

You can use the latest version. You just won't be able to define your aspect with

@Aspect annotation

But you can write your aspects the 'old way' and it will work.

I also recommend you dowload the AJDT plugin for eclipse. When developing your aspects it give you visual hints on :

all the methods/class advised by a pointcut
advices all over your codebase.

Very helpful during dev. phase.

Upvotes: 2

Matt Ball
Matt Ball

Reputation: 359816

Read the page you linked:

The AspectJ compiler produces programs for any version of the Java platform (jdk1.1 and later). The compiler itself requires Java2 (1.4 or later) to run.

or the FAQ, which that page links to:

What Java versions does AspectJ require and support?

The AspectJ compiler produces programs for any released version of the Java platform (jdk1.1 and later). When running, your program classes must be able to reach classes in the small (< 100K) runtime library (aspectjrt.jar) from the distribution. The tools themselves require J2SE 1.3 or later to run, but the compiler can produce classes for any 1.1-compliant version of the Java platform.

Upvotes: 2

Related Questions