Bug 284358

Summary: [ITD] Returning "this" from an ITD cause bad error display
Product: [Tools] AJDT Reporter: Simone Gianni <simoneg>
Component: UIAssignee: AJDT-inbox <AJDT-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: andrew.eisenberg
Version: 2.0.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Simone Gianni CLA 2009-07-22 22:37:34 EDT
Build ID: 20090619-0625

Steps To Reproduce:
1. Create a X class
2. Create an aspect containing :

public X X.getMe() {
  return this;
}

3. Look at the rough red mark that appears :)



More information:
Tested on Eclipse Galileo, AJDT version 2.0.0.e35x-20090624-1600 with AspectJ version 1.6.5.20090618034232.

AspectJ does accept such code. It is used extensively in a number of libraries that employ chained invocations.
Comment 1 Andrew Eisenberg CLA 2009-07-25 17:39:00 EDT
This is a problem with the reconciler.  I'll have a look at this next week.
Comment 2 Andrew Eisenberg CLA 2009-07-27 14:00:55 EDT
Fixed with regression tests.  Will be available in next dev build of the 3.5 stream.