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 235950

Summary: AssertionError: Can't annotate already annotated type: (@some.Any :: some.Outer.Middle.Inner); adding: @some.Counted
Product: java Reporter: TimoKinnunen
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal CC: TimoKinnunen
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 203855
Attachments: stacktrace
Full contents of NetBeansProjects folder that cause this error to show

Description TimoKinnunen 2013-09-13 18:00:12 UTC
Build: NetBeans IDE 7.4 Beta (Build 201307092200)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b48, Java(TM) SE Runtime Environment, 1.8.0-ea-b106
OS: Windows 8

User Comments:
TimoKinnunen: Please see Bug 235948 for the requested dump file and description.




Stacktrace: 
java.lang.AssertionError: Can't annotate already annotated type: (@some.Any :: some.Outer.Middle.Inner); adding: @some.Counted
   at com.sun.tools.javac.util.Assert.error(Assert.java:133)
   at com.sun.tools.javac.util.Assert.check(Assert.java:94)
   at com.sun.tools.javac.code.Type$AnnotatedType.<init>(Type.java:1622)
   at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions$1.visitAnnotatedType(TypeAnnotations.java:551)
   at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions$1.visitAnnotatedType(TypeAnnotations.java:530)
   at com.sun.tools.javac.code.Type$AnnotatedType.accept(Type.java:1659)
Comment 1 TimoKinnunen 2013-09-13 18:00:18 UTC
Created attachment 140063 [details]
stacktrace
Comment 2 TimoKinnunen 2013-09-18 16:27:13 UTC
Created attachment 140222 [details]
Full contents of NetBeansProjects folder that cause this error to show

Steps to reproduce:
1. Start NetBeans with problematic projects in NetBeansProjects folder.
2. Double-click Outer.java in project Tests.
Comment 3 Martin Balin 2015-09-17 11:29:13 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.