Community
Participate
Working Groups
public aspect SomeAspect { public void SomeClass.method() { SomeClass me = this; ... } } We get a type error for the assignment of "this" to "me". I guess it is somewhat unusual to write code like this. Nevertheless it is correct. I also suspect we will get similar type errors when passing "this" as an argument, but have not had a chance to test that yet.
Oh, yes, forgot to mention. This is strictly a UI issue. The aspectj compiler handles it correctly. We only see the error in the editor, but not in the "problems" view.
Interesting...when the aspect and target class are in the default package, there is no spurious error, but when they are in any other package, the problem appears.
Fixed now locally.
Fix has been committed.