Bug 163326 - [model] Showing only first method advised if few in the line.
Summary: [model] Showing only first method advised if few in the line.
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.4.0   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 1.5.3   Edit
Assignee: Andrew Eisenberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 08:07 EST by Pawel CLA
Modified: 2008-06-27 14:35 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 Pawel CLA 2006-11-03 08:07:03 EST
With <Introduction Example> from AJDT Tools for Eclipse:

Adding:

public aspect A {
	pointcut getter(): 
		target(Point) &&
		call(public * get*(..));
	
	after(): getter() {
		System.out.println("Get");
	}
}

Then in:

   public String toString(){
      return "(" + getX() + ", " + getY() + ")[" 
      	+ getTheta() + " : " + getRho() + "]";
   }

Only getX() and getTheta() would be detected as advised, as first methods in lines.
Comment 1 Andrew Clement CLA 2008-06-13 14:28:09 EDT
interesting. wonder if this is still the case - is the model clever enough now to distinguish the multiple locations?
Comment 2 Andrew Clement CLA 2008-06-27 14:35:04 EDT
works fine now, I can see all the separate advises lines in the xref view and gutter annotation context menus.