[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] @AJ or conventional syntax?


There are several things to consider. Firstly @AJ can only be used with Java 5. AspectJ supports environments as far back as JDK 1.1 which is needed for J2ME. Also because of the huge number of changes in Java 5 it will be a long time before all platforms catch up. Secondly there is personal preference. I would suggest most people in the AspectJ community, and especially those who have been using it for a long time, are more comfortable using the code-based style. An OO language like Java treats classes as first-class entities in the language and AspectJ does the same for aspects. However it is recognized that not everyone wants to use an IDE like Eclipse which gives the best support for the code-style. Finally there are certain language features that are not available using @AJ. For example privileged aspects cannot be defined using that style. There are also some restrictions with using inter-type declarations.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx


Please respond to aspectj-users@xxxxxxxxxxx

Sent by:        aspectj-users-bounces@xxxxxxxxxxx

To:        aspectj-users@xxxxxxxxxxx
Subject:        Re: [aspectj-users] @AJ or conventional syntax?

#: Eduardo Rocha changed the world a bit at a time by saying on  11/21/2005 2:58 PM :#
> I would like to know if people are willing to move to @AJ syntax when
> possible, or prefer to continue with traditional syntax even when
> dealing with Java 5.
> Which one do people find better for reading?
> A major drawback I see with @AJ syntax is that it doesn't allow me to
> navigate through the marked join points (in Eclipse).
> I would like to hear from other users.
> Thanks.
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users

As pointed in one of my previous mails I would migrate to @AJ syntax immediately it reaches the
richness of traditional approach. Unfortunately, at this moment I don't have enough time to give it
a chance, but I am keeping an eye on it and immediately I feel it is there I will jump to use it.

Matt how comes that these are complementary? Shouldn't be the same think writting your code in @AJ
or in traditional mode/style?

.w( the_mindstorm )p.

aspectj-users mailing list