Bug 253067 - [plan] [model] Missing relationship in model when advice applies to element declared by an ITD
Summary: [plan] [model] Missing relationship in model when advice applies to element d...
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: IDE (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.6.3   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-01 13:06 EDT by Andrew Eisenberg CLA
Modified: 2008-12-02 13:05 EST (History)
1 user (show)

See Also:


Attachments
simple project that exhibits this problem (3.64 KB, application/octet-stream)
2008-11-01 13:07 EDT, Andrew Eisenberg CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eisenberg CLA 2008-11-01 13:06:40 EDT
It seems like the advice relationship is not showing up in the model  
when the advice applies to a method that is part of an ITD.  It  
compiles correctly, but I don't see it showing up in the ASM.

Here is a simple project that shows the problem.  You'll notice that  
there are no gutter markers for the advice.
Comment 1 Andrew Eisenberg CLA 2008-11-01 13:07:28 EDT
Created attachment 116697 [details]
simple project that exhibits this problem
Comment 2 Andrew Clement CLA 2008-12-02 13:05:50 EST
fixed this case.  The relationship building code gets tricked by the ITD and when attempting to build the relationship it is attempting to lookup the ITD as it would be in the woven code (ie. a new method called nothing in the C type).  Of course, that method does not exist in the model - it should have been looked up in the declaring aspect as an ITD.  

There are probably similar bugs in this area, I've only addressed this case for now.