Community
Participate
Working Groups
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".
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.
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.
I have a fix for this. After some more testing, I will commit.
Fixed with regression tests. http://git.eclipse.org/c/ajdt/org.eclipse.ajdt.git/commit/?id=bb1da7223d63fa3f11cd4bc2a466b01c058d0fc2