Bug 57584 - Interaction of AspectJ and JDT
Summary: Interaction of AspectJ and JDT
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Luzius Meisser CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 70712 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-06 11:00 EDT by Casier Koen CLA
Modified: 2004-09-21 09:36 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Casier Koen CLA 2004-04-06 11:00:15 EDT
Using a library compiled with the AJC-compiler within a pure java project gives 
some annoying effects.

Within the content-assistance (which shows all of the methods available to the 
working object), the methods introduced using AspectJ are not shown.
However when I check the declared methods (using java-reflection) for the class 
to which this object applies, these methods can be found.
I think this is a strange problem since I thought the content-assisting 
functionality in JDT also used the java-reflection.

Again within the same content-assistence, I can see lots of public final 
variables with the very cryptic AJC-names, and a some methods with analog names.
Isn't it possible to make this variables not public (and possibly not even 
protected) so these variables will not crowd the content-assisting 
functionality in JDT. I think this is a major problem, since in some classes 
(the classes in which I use AspectJ), the amount of such uninteresting fields 
and methods is larger than the actual usefull fields and methods.

Both problems make it much harder to program using an AspectJ-compiled library 
within a pure java-project. 

greetings,
Koen Casier
Comment 1 Adrian Colyer CLA 2004-05-13 05:10:56 EDT
Moved to AJDT project. We plan to fix this in the Lancaster release.
Comment 2 Luzius Meisser CLA 2004-09-10 06:25:41 EDT
I've just checked in a change that improves the situation. You will now get 
code completion for elements from .aj files in qualified context.

For example:

Aspect a = ...;
a. <- code complete here will contain the visible members of Aspect a
Comment 3 Luzius Meisser CLA 2004-09-10 06:28:22 EDT
*** Bug 70712 has been marked as a duplicate of this bug. ***
Comment 4 Luzius Meisser CLA 2004-09-21 09:36:30 EDT
All the completion proposals beginning with ajc$ get filtered in 1.2.0 M1 so 
the artefacts mentioned by Koen Casier aren't visible any more.
-> fixed

(for other issues related to code completion, I've opened bug 74419)