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.

Bug 258778

Summary: AssertionError at com.sun.tools.javac.util.Assert.error
Product: java Reporter: Maksim Khramov <mkhramov>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: alexvsimon
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 223453
Attachments: stacktrace
stacktrace

Description Maksim Khramov 2016-04-11 20:42:05 UTC
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)
Comment 1 Maksim Khramov 2016-04-11 20:42:07 UTC
Created attachment 159215 [details]
stacktrace
Comment 2 Maksim Khramov 2016-04-11 20:44:17 UTC
Code to produce this issue:

        ((JComboBox)component).addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent ev) {
                
            }
        });
Comment 3 Alexander Simon 2016-05-26 06:36:48 UTC
Created attachment 159881 [details]
stacktrace

try convert anonymous to member