Why Eclipse does not include annotations when implementing methods from a Java interface?
问题 The following interface: import javax.xml.ws.Action; public interface AnnotationsTestInterface { @Action public void annotatedMethod(); } And an implementing class: public class Impl implements AnnotationsTestInterface {} At this point Eclipse asks me to add unimplemented methods (I choose this) or make the class abstract. After the addition the class looks like this: import javax.xml.ws.Action; public class Impl implements AnnotationsTestInterface { @Override @Action public void