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 46508 - Parser wigs out when you extend a primitive array.
Summary: Parser wigs out when you extend a primitive array.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-23 17:09 UTC by dhinojosa
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ClassCastException (1.25 KB, text/plain)
2004-07-27 12:52 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dhinojosa 2004-07-23 17:09:46 UTC
Definately not a priority, but if you make a class
that extends a primitive array like int[] then the
parser generates a null pointer exception.  Just
one of those obscure things. :)

Annotation: Parser error
java.lang.NullPointerException
	at
org.netbeans.modules.java.gj.V8TreeTranslator.process(V8TreeTranslator.java:97)
	at
org.netbeans.modules.java.gj.ParserEngine.completeRequest(ParserEngine.java:359)
	at
org.netbeans.modules.java.gj.ParserEngine.parseObject(ParserEngine.java:175)
	at
org.netbeans.modules.java.gj.JavaParserEngine.process(JavaParserEngine.java:72)
	at
org.netbeans.modules.java.parser.ParsingSupport$Processor.process(ParsingSupport.java:711)
	at
org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(ParsingSupport.java:662)
	at
org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.java:593)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
==>
Comment 1 Jan Becicka 2004-07-27 12:51:17 UTC
I cannot reproduce this NPE, but extending int[] can still cause problems:

java.lang.ClassCastException
        at
org.netbeans.modules.javacore.parser.MDRParser.resolveSuperTypes(MDRParser.java:1053)
Comment 2 Jan Becicka 2004-07-27 12:52:11 UTC
Created attachment 16483 [details]
ClassCastException
Comment 3 Martin Matula 2004-11-27 21:42:21 UTC
P5->P3 - parser should never throw exceptions. Tomasi, please look at it.
Comment 4 Martin Matula 2005-02-11 15:53:07 UTC
Seems it is fixed. No longer reproducible with the current dev builds.
Comment 5 Quality Engineering 2007-09-20 10:21:05 UTC
Reorganization of java component