Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ajdt-dev] New AJDT development build containing latest AspectJ5 development build

Using Java 5 features with AspectJ

For this you will need:

1. AJDT 1.2.0.20050124144759, available as a zip file or
update site from the Development Builds section of:
    http://www.eclipse.org/ajdt/download.html

2. Eclipse 3.1M4

3. Java 2 Platform Standard Edition 5.0 a.k.a JDK 5.0


Steps:

1. Start Eclipse and install AJDT.

2. Add your JDK 5.0 under Java > Installed JREs if it isn't there already.

3. Create a new AspectJ project, or use one you prepared earlier.

4. Go to project properties > Java Build Path and check it's using the JRE
System Library from your JDK 5.0. If it isn't, add it using Add Library...
and then remove the old one.

5. Under AspectJ Compiler project properties or workbench preferences,
enable 1.5 weaving behaviour in the 5.0 tab.

6. Under Java Compiler project properties or workbench preferences, set
your compiler compliance level to 5.0.

7. Go to town and try using generics, annotations, enums, the new
"for" loop, varargs, autoboxing, and static imports in your AspectJ
projects...

8. Raise bugs for anything that doesn't work :)

Regards,

Matt.

-- 
Matt Chapman
AJDT Development, http://www.eclipse.org/ajdt



Back to the top