Bug 283864 - The crosscutting model contains incorrect entries when target of advice is generic and an array
Summary: The crosscutting model contains incorrect entries when target of advice is ge...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 283747
  Show dependency tree
 
Reported: 2009-07-17 12:02 EDT by Andrew Eisenberg CLA
Modified: 2013-06-24 11:03 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 Andrew Eisenberg CLA 2009-07-17 12:02:59 EDT
This is the AJ side of Bug 283747.  It seems that the bug originally comes from AspectJ.

In that bug, there is a simple failing test program.  It seems that advice relationships in the relationship map are being added to the type, rather than the methods.  In particular, 

This entry is a target of the advice in the relationship map (and has a corresponding opposite entry in the map):
=Bug283747/src<{Other.java[Other

Instead, these 3 methods should be in the relationship map:
=Bug283747/src<{Other.java[Other~foo2~\[QT;
=Bug283747/src<{Other.java[Other~foo3~\[QT;
=Bug283747/src<{Other.java[Other~foo4
Comment 1 Andrew Clement CLA 2009-07-17 16:47:48 EDT
problem here is the bytecodeSignature in the model is not erased but the method being looked up is erased.
Comment 2 Andrew Clement CLA 2013-06-24 11:03:51 EDT
unsetting the target field which is currently set for something already released