Inter-type declaration: error marker but compiles fine [message #70800] |
Sat, 03 November 2007 11:13 |
Eclipse User |
|
|
|
Originally posted by: stefan.bley.dd.gmx.de
Hi, I have got the following classes and aspects:
public interface IService {}
public abstract class Service implements Service() {}
public aspect ServiceAspect {
public String IService.getName();
private String Service.name;
public String Service.getName() { return name; }
}
Now I want to call getName() like that:
public class ServiceImpl extends Service{
void myMethod() {
String n = getName(); // error marker: Is undefined for the type
ServiceImpl
}
}
but it compiles without problems. Have I done something wrong or is it a
AJDT bug?
Regards, Stevy
|
|
|
Powered by
FUDForum. Page generated in 0.06883 seconds