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.
Build: NetBeans IDE Dev (Build 201602200002) VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17 OS: Windows 7 User Comments: mkhramov: Invoke convert Anonymous to member refactoring Undo command Invoke refactoring again The error is thrown Stacktrace: java.lang.AssertionError at com.sun.tools.javac.util.Assert.error(Assert.java:155) at com.sun.tools.javac.util.Assert.check(Assert.java:46) at com.sun.tools.javac.code.Symbol$ClassSymbol.setAnnotationTypeMetadata(Symbol.java:1282) at com.sun.tools.javac.comp.TypeEnter$MembersPhase.finishClass(TypeEnter.java:924) at com.sun.tools.javac.comp.TypeEnter$MembersPhase.runPhase(TypeEnter.java:901) at com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:278)
Created attachment 159215 [details] stacktrace
Code to produce this issue: ((JComboBox)component).addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent ev) { } });
Created attachment 159881 [details] stacktrace try convert anonymous to member