Bug 361170 - AspectJ editor shows wrong error marker with ITD and this
Summary: AspectJ editor shows wrong error marker with ITD and this
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 2.1.3   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: 2.2.0   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-17 13:40 EDT by Alexander Winter CLA
Modified: 2012-03-01 14:40 EST (History)
1 user (show)

See Also:


Attachments
Example project which shows the error marker in the editor (3.76 KB, application/zip)
2011-10-17 13:43 EDT, Alexander Winter CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Winter CLA 2011-10-17 13:40:17 EDT
Build Identifier: M20110210-1200

When adding an intertype declaration on a class B which extends A and inserting a method with the ITD which just returns the B instance as A, a wrong error marker shows up in the editor. This is only a minor bug, as the ajc compiles everything correctly.

Reproducible: Always

Steps to Reproduce:
1. Define two classes A and B, where B extends A.
2. Define an aspect AspectC which declares a new method returnA() on B that returns an A.
3. The method body should just be filled with "return this".
Comment 1 Alexander Winter CLA 2011-10-17 13:43:07 EDT
Created attachment 205358 [details]
Example project which shows the error marker in the editor

This project can be imported to reproduce the bug as well. Simply open "MyExtendingAspect" in the editor.
Comment 2 Andrew Eisenberg CLA 2011-10-17 15:19:15 EDT
Thanks for the sample project.  I can reproduce the problem.  This is an AJDT bug, not AspectJ.  I am moving this bug report to AJDT.
Comment 3 Andrew Eisenberg CLA 2012-02-29 19:56:42 EST
I have a fix for this.  After some more testing, I will commit.