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 - AssertionError at com.sun.tools.javac.util.Assert.error
Summary: AssertionError at com.sun.tools.javac.util.Assert.error
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-11 20:42 UTC by Maksim Khramov
Modified: 2016-05-26 06:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 223453


Attachments
stacktrace (8.10 KB, text/plain)
2016-04-11 20:42 UTC, Maksim Khramov
Details
stacktrace (8.10 KB, text/plain)
2016-05-26 06:36 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
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