Bug 284358 - [ITD] Returning "this" from an ITD cause bad error display
Summary: [ITD] Returning "this" from an ITD cause bad error display
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 22:37 EDT by Simone Gianni CLA
Modified: 2009-07-27 14:00 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 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.