Bug 72016 - No problem type information from AspectJ compiler / AJDE
Summary: No problem type information from AspectJ compiler / AJDE
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: Andrew Clement CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 71998
  Show dependency tree
 
Reported: 2004-08-16 08:46 EDT by Matt Chapman CLA
Modified: 2004-10-21 04:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Chapman CLA 2004-08-16 08:46:50 EDT
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.
Comment 1 Andrew Clement CLA 2004-08-17 05:10:12 EDT
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.
Comment 2 Andrew Clement CLA 2004-08-18 03:17:04 EDT
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
Comment 3 Mik Kersten CLA 2004-08-18 12:48:09 EDT
This works fine for the other IDE clients, who will ignore this info for now.
Comment 4 Adrian Colyer CLA 2004-10-21 04:32:49 EDT
Fix released as part of AspectJ 1.2.1