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 262183

Summary: AssertionError at com.sun.tools.javac.util.Assert.error
Product: java Reporter: Ralph Ruijs <ralphbenjamin>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: codekick, fillumina, jungmat, muellermi, zmirc
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 222812
Attachments: stacktrace
IDE log - Changing package declaration of Java classes after coyping them from other project
stacktrace

Description Ralph Ruijs 2016-05-23 11:39:59 UTC
Build: NetBeans IDE Dev (Build 20160519-be287f4b2fd4)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.92-b14, Java(TM) SE Runtime Environment, 1.8.0_92-b14
OS: Linux

User Comments:
ralphbenjamin: Added classes from #262177 to a simple javaapplication opened in NetBeans

GUEST: Hitting Alt+Enter for adding missing import of member variable.




Stacktrace: 
java.lang.AssertionError
   at com.sun.tools.javac.util.Assert.error(Assert.java:155)
   at com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62)
   at com.sun.tools.javac.comp.Check.validateTypeAnnotation(Check.java:2872)
   at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitAnnotation(Attr.java:4815)
   at com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:2518)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
Comment 1 Ralph Ruijs 2016-05-23 11:40:01 UTC
Created attachment 159835 [details]
stacktrace
Comment 2 Dusan Balek 2016-06-03 12:39:15 UTC
Do you have a reproducible test case - a simple project together with the exact steps to reproduce? Thanks
Comment 3 zmirc 2016-09-04 18:56:34 UTC
Created attachment 161894 [details]
IDE log - Changing package declaration of Java classes after coyping them from other project
Comment 4 muellermi 2017-03-20 22:10:06 UTC
Created attachment 163899 [details]
stacktrace

switch source file