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.
Current trunk. Not sure exactly how to reproduce - I am testing a freeform project type, but the problem may be more general. Ran on JDK 1.5 (b51, Linux) and while the code completion database was updating rt.jar I saw some exceptions on console.
Created attachment 15324 [details] Stack traces
At a minimum, the exception message needs to be better - which attribute? Which class? What code source (URL)?
Afterwards there are no imports available from rt.jar after java.lang.OutOfMemoryError (looking lexicographically in code completion). The next one in sequence appears to be java.lang.Override, which defines an attribute: @Target(ElementType.METHOD) @Retention(RetentionPolicy.SOURCE) public @interface Override { }
Reproducible for me even with a j2seproject (after shutting down, killing $userdir/config/ParserDB/, and restarting). Looking at the CCDB dialog, parsing rt.jar halts suddenly around 50%.
Problem is due to error when loading an annotation type that defines an array of possible values, such as java.lang.annotation.RetentionType. Fix in progress...
Recent changes in classfile: ---%<--- --------------------- PatchSet 117 Date: 2004/05/26 05:20:39 Author: tball Log: Changes to support Java 1.5 classfile format. Members: src/org/netbeans/modules/classfile/Access.java:1.1->1.2 src/org/netbeans/modules/classfile/Annotation.java:INITIAL->1.1 src/org/netbeans/modules/classfile/AnnotationComponent.java:INITIAL->1.1 src/org/netbeans/modules/classfile/ArrayAnnotation.java:INITIAL->1.1 src/org/netbeans/modules/classfile/ClassAnnotation.java:INITIAL->1.1 src/org/netbeans/modules/classfile/ClassFile.java:1.11->1.12 src/org/netbeans/modules/classfile/ClassName.java:1.11->1.12 src/org/netbeans/modules/classfile/Code.java:1.4->1.5 src/org/netbeans/modules/classfile/EnclosingMethod.java:INITIAL->1.1 src/org/netbeans/modules/classfile/EnumAnnotation.java:INITIAL->1.1 src/org/netbeans/modules/classfile/ExceptionTableEntry.java:1.3->1.4 src/org/netbeans/modules/classfile/Field.java:1.6->1.7 src/org/netbeans/modules/classfile/LocalVariableTableEntry.java:1.2->1.3 src/org/netbeans/modules/classfile/LocalVariableTypeTableEntry.java:INITIAL->1.1 src/org/netbeans/modules/classfile/Method.java:1.7->1.8 src/org/netbeans/modules/classfile/NestedAnnotation.java:INITIAL->1.1 src/org/netbeans/modules/classfile/Parameter.java:INITIAL->1.1 src/org/netbeans/modules/classfile/PrimitiveAnnotation.java:INITIAL->1.1 src/org/netbeans/modules/classfile/Variable.java:1.5->1.6 --------------------- PatchSet 118 Date: 2004/05/27 03:26:44 Author: tball Log: Annotations implemented for classfiles and fields. Members: src/org/netbeans/modules/classfile/Annotation.java:1.1->1.2 src/org/netbeans/modules/classfile/AnnotationComponent.java:1.1->1.2 src/org/netbeans/modules/classfile/ClassFile.java:1.12->1.13 src/org/netbeans/modules/classfile/EnumAnnotation.java:1.1->1.2 src/org/netbeans/modules/classfile/Field.java:1.7->1.8 --------------------- PatchSet 119 Date: 2004/05/27 03:47:37 Author: tball Log: Improved toString implementations. Members: src/org/netbeans/modules/classfile/Annotation.java:1.2->1.3 src/org/netbeans/modules/classfile/AnnotationComponent.java:1.2->1.3 src/org/netbeans/modules/classfile/ArrayAnnotation.java:1.1->1.2 src/org/netbeans/modules/classfile/ClassFile.java:1.13->1.14 ---%<---
Fixed loading of annotations with array element values.