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 43936 - Exceptions printed to console when creating CCDB for JDK 1.5
Summary: Exceptions printed to console when creating CCDB for JDK 1.5
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Classfile (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: _ tball
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-05-27 16:07 UTC by Jesse Glick
Modified: 2004-08-13 12:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack traces (9.38 KB, text/plain)
2004-05-27 16:08 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-05-27 16:07:50 UTC
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.
Comment 1 Jesse Glick 2004-05-27 16:08:31 UTC
Created attachment 15324 [details]
Stack traces
Comment 2 Jesse Glick 2004-05-27 16:09:01 UTC
At a minimum, the exception message needs to be better - which
attribute? Which class? What code source (URL)?
Comment 3 Jesse Glick 2004-05-27 16:21:41 UTC
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 {
}
Comment 4 Jesse Glick 2004-05-27 16:27:50 UTC
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%.
Comment 5 _ tball 2004-05-27 16:28:14 UTC
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...
Comment 6 Jesse Glick 2004-05-27 16:29:13 UTC
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 
---%<---
Comment 7 _ tball 2004-05-27 17:09:54 UTC
Fixed loading of annotations with array element values.