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 96923 - NPE from MDRParser.processAST
Summary: NPE from MDRParser.processAST
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-01 10:53 UTC by Jiri Prox
Modified: 2008-02-25 16:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full stacktrace (2.67 KB, text/plain)
2007-03-01 10:55 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2007-03-01 10:53:52 UTC
NB 5.5.1 200702280600
JDK 1.6
Linux

NPE thrown when parsing source file. Reliably reproducible.

Steps to reproduce:
1) have a code (note the incomplete declaration of inner class):

package javaapplication3;
public class Main {
    class 
}
enum MyEnum{
    A,B;    
}

2) wait for parsing
->

java.lang.NullPointerException
	at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:444)
	at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:379)
	at org.netbeans.modules.javacore.parser.MDRParser.processAST(MDRParser.java:341)
Comment 1 Jiri Prox 2007-03-01 10:55:00 UTC
Created attachment 39040 [details]
full stacktrace
Comment 2 Quality Engineering 2007-09-20 10:31:07 UTC
Reorganization of java component
Comment 3 Jan Becicka 2008-02-25 16:07:49 UTC
This issue is not valid in current builds any more. Java support was completely
redesigned in 6.0 time frame. Please use NetBeans 6.0 and later.