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 50979 - NPE from SourceElementImpl.getClass during commit validation
Summary: NPE from SourceElementImpl.getClass during commit validation
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2004-10-29 17:58 UTC by Jesse Glick
Modified: 2004-11-09 20:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (1.58 KB, text/plain)
2004-10-29 17:59 UTC, Jesse Glick
Details
New stack trace (2.45 KB, text/plain)
2004-10-29 18:46 UTC, Jesse Glick
Details
The details (72.67 KB, text/html)
2004-10-29 20:14 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-10-29 17:58:34 UTC
Dev sources, 1.5.0.
Comment 1 Jesse Glick 2004-10-29 17:59:31 UTC
Created attachment 18607 [details]
Stack trace
Comment 2 Jesse Glick 2004-10-29 17:59:55 UTC
Note that test passes despite the exception.
Comment 3 Jesse Glick 2004-10-29 18:45:25 UTC
I guess that was from SourceElementImpl.java 1.34. Now I am getting a
real commit validation failure from 1.35.
Comment 4 Jesse Glick 2004-10-29 18:46:56 UTC
Created attachment 18609 [details]
New stack trace
Comment 5 Jesse Glick 2004-10-29 20:14:58 UTC
Created attachment 18611 [details]
The details
Comment 6 Jesse Glick 2004-10-29 20:19:28 UTC
I will change ValidateLayerConsistencyTest to skip the VCS *.class
files, since they are not really intended for browsing anyway, but
this bug still remains valid for anyone looking at *.class files in
funny places.
Comment 7 Jesse Glick 2004-10-29 20:46:45 UTC
committed     Up-To-Date  1.11       
core/test/unit/src/org/netbeans/core/projects/ValidateLayerConsistencyTest.java
Comment 8 Martin Matula 2004-10-30 13:56:59 UTC
Fixed.

Checking in src/org/netbeans/modules/clazz/SourceElementImpl.java;
/cvs/clazz/src/org/netbeans/modules/clazz/SourceElementImpl.java,v 
<--  SourceElementImpl.java
new revision: 1.36; previous revision: 1.35
done
Comment 9 Jesse Glick 2004-10-30 16:12:04 UTC
You may want to revert rev. 1.11 of ValidateLayerConsistencyTest just
to be sure.
Comment 10 Martin Matula 2004-10-30 17:40:00 UTC
I ran the commit validation with rev. 1.10 of
ValidateLayerConsistencyTest.java and all tests passed.
Comment 11 Jesse Glick 2004-11-09 20:55:09 UTC
So, I reverted the test:

committed     Up-To-Date  1.12       
core/test/unit/src/org/netbeans/core/projects/ValidateLayerConsistencyTest.java