This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
NB 5.0 dev build 20050926 JDK 1.5.0_05 An error 'X does not override abstract method ..' not announced within anonymous class. Steps to reproduce: ------------------- 1) create new interface: public interface Itemable { void setOwner(Object owner); } 2) create new class: public class Owner { LinkedList ll = new LinkedList(); public void add(Itemable it) { it.setOwner(this); ll.add(it); } public void meth() { this.add(new Itemable() { }); } } -> this code can not be compiled because the anonymous class derived from Itemable does not implement method setOwner(Object), but it is not announced in the editor.
This happens only if anonymous class has empty body.
Fixed in trunk. Checking in gjast.jar; /cvs/java/external/gjast.jar,v <-- gjast.jar new revision: 1.5; previous revision: 1.4 done
verified
Reorganization of java component