Community
Participate
Working Groups
The JDT compiler provides information relating to errors and warnings via IProblem instances which allows quick fix processors to determine whether a quick fix operation is possible for a particular error or warning. However the AspectJ compiler does not make this information available to AJDE, so AJDT cannot make use of it in the same way that JDT can. This means there is no quick fix available at all in aj projects - a significant loss of functionality compared to java projects, as reported in AJDT bug 71998.
I have extended the message interface to expose the IProblem 'id' (for example, all unusedimport messages have the same id). All the possible ids are listed in the IProblem class and as we ship the IProblem class (its part of the compiler) with the base AspectJ I think it is fine to expose the id on messages. Other IDEs are free to compare the id with those in IProblem and do whatever they like. In Eclipse we may just have the benefit of magically having quickfixes work ... maybe ... Also needed to expose the start and end locations of the problems to enable all quick fixes to work correctly. See the changes to IMessage. Couple of tests added. fix will be checked in asap, will close bug when build successful.
Fix available: BUILD COMPLETE - build.343 Date of build: 08/17/2004 14:25:48 Time to build: 93 minutes 22 seconds Last changed: 08/17/2004 11:16:03 Latest good AspectJ jar available at: download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar
This works fine for the other IDE clients, who will ignore this info for now.
Fix released as part of AspectJ 1.2.1