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.
This code is error badged, though it works perfectly. The error badge is at commented line. public abstract class Main1 { abstract class M2 { abstract void doWork(); } public static void main(String[] args) { Main1 m = new Main1() { @Override void doWork() { System.out.println("Main1 working"); } }; M2 m2 = m.new M2() { // this line is error badged @Override void doWork() { System.out.println("M2 working"); } }; m.doWork(); m2.doWork(); } abstract void doWork(); }
Dusane, could you please have a look? OpenJDK compiles this fine.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/89619a8f9952
Integrated into 'main-golden', will be available in build *200905300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/89619a8f9952 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #165946: Invalid error badge in code - fixed.
verified in the build 090702
The fix has been ported into the release67_fixes repository. http://hg.netbeans.org/release67_fixes/rev/35270972af92
Product Version: NetBeans IDE 6.7.1 RC (Build 200907150227) Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Verified in 6.7.1. RC build