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 46260

Summary: IDE unusable when Auto Comment is opened on source with 1.5 features
Product: java Reporter: _ rkubacki <rkubacki>
Component: UnsupportedAssignee: Daniel Prusa <dprusa>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: NPE stack trace
source file

Description _ rkubacki 2004-07-16 20:11:24 UTC
trunk build from Jul 16, JDK1.5.0b55, Linux, GTK L&F

When Auto comment action is invoked on a source
that contain Java 1.5 features the IDE starts to
produce endless stream of NPEs and becomes unusable.
Comment 1 _ rkubacki 2004-07-16 20:11:55 UTC
Created attachment 16300 [details]
NPE stack trace
Comment 2 _ rkubacki 2004-07-16 20:13:30 UTC
Created attachment 16301 [details]
source file
Comment 3 Jan Pokorsky 2004-07-19 13:49:05 UTC
It looks like a bug of the java src model. FieldElement.getType cannot
return null even for a generic type.
Comment 4 Daniel Prusa 2004-07-20 10:26:11 UTC
Fixed.
Checking in FieldElementImpl.java;
/cvs/java/src/org/netbeans/modules/java/bridge/FieldElementImpl.java,v
 <--  FieldElementImpl.java
new revision: 1.5; previous revision: 1.4
Comment 5 Jiri Prox 2005-07-11 14:50:27 UTC
Verified in 4.2 (200507110943)
Comment 6 Quality Engineering 2007-09-20 12:09:35 UTC
Reorganization of java component