Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327057

Summary: [handles] Declare annotation coming from another project does not have proper handle
Product: [Tools] AspectJ Reporter: Andrew Eisenberg <andrew.eisenberg>
Component: AJBrowserAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: aclement
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on:    
Bug Blocks: 324240    
Attachments:
Description Flags
Pair of projects that has this problem none

Description Andrew Eisenberg CLA 2010-10-05 23:25:42 EDT
Given a 2 project setting.  Common is on the aspect path of Depends.  There is a declare @type in common that targets a type in depends.  Here is the crosscutting model (from the AJDT event trace):

20:21:36 Printing crosscutting model for Common
20:21:36 Hierarchy:
=Common/src
  =Common/src<com.bugzilla.ajdt
    =Common/src<com.bugzilla.ajdt*Annotates.aj
      =Common/src<com.bugzilla.ajdt*Annotates.aj%com.bugzilla.ajdt
      =Common/src<com.bugzilla.ajdt*Annotates.aj#
      =Common/src<com.bugzilla.ajdt*Annotates.aj'Annotates
        =Common/src<com.bugzilla.ajdt*Annotates.aj'Annotates[Ann
        =Common/src<com.bugzilla.ajdt*Annotates.aj'Annotates`declare \@type

Relationship map:

20:21:36 --------------------------------------
20:21:36 
20:21:36 
20:21:36 --------------------------------------
20:21:36 Printing crosscutting model for Depends
20:21:36 Hierarchy:
=Depends/src
  =Depends/src<com.bugzilla.other
    =Depends/src<com.bugzilla.other{Java.java
      =Depends/src<com.bugzilla.other{Java.java%com.bugzilla.other
      =Depends/src<com.bugzilla.other{Java.java#
        =Depends/src<com.bugzilla.other{Java.java#com.bugzilla.ajdt.Annotates$Ann
      =Depends/src<com.bugzilla.other{Java.java[Java

Relationship map:
=Depends/src<com.bugzilla.other{Java.java[Java ::
	=Depends/src<com.bugzilla.other{Java.java[Java --annotated by--> [*Annotates.aj]
*Annotates.aj ::
	*Annotates.aj --annotates--> [=Depends/src<com.bugzilla.other{Java.java[Java]


Notice the relationship map has a handle *Annotates.aj.  I would expect this handle to be:

=Depends/binaries<com.bugzilla.ajdt*Annotates.aj'Annotates`declare \@type
Comment 1 Andrew Eisenberg CLA 2010-10-05 23:27:03 EDT
Created attachment 180292 [details]
Pair of projects that has this problem
Comment 2 Andrew Eisenberg CLA 2010-10-05 23:28:04 EDT
This bug is blocking the completion of Bug 324240.
Comment 3 Andrew Clement CLA 2013-06-24 11:05:31 EDT
unsetting the target field which is currently set for something already released