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 57182 - JavaClass.isInner == true for outter classes (NullPointerException from code completion)
Summary: JavaClass.isInner == true for outter classes (NullPointerException from code ...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 12:23 UTC by Jan Lahoda
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The NullPointerException. (1.60 KB, text/plain)
2005-03-30 12:24 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2005-03-30 12:23:30 UTC
NB continuous build 20050330-091.

1. (With a clean userdir).
2. Create anew empty library project.
3. Create class "test2" and delete it.
4. Create package "test2" and class "Test2" inside it.
5. In the "test2.Test2" class' constructor, invoke code completion: nothing
happens and the attached NullPointerException is thrown in the console.

It seems that the problem is that JavaClass.isInner returns true for test2.Test2
class.
Comment 1 Jan Lahoda 2005-03-30 12:24:32 UTC
Created attachment 21221 [details]
The NullPointerException.
Comment 2 Jan Lahoda 2005-03-30 12:40:58 UTC
Added issues@editor on CC.
Comment 3 Dusan Balek 2005-03-30 13:57:22 UTC
NPE from code completion fixed in [maintrunk].

Checking in JMIUtils.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/JMIUtils.java,v  <-- 
JMIUtils.java
new revision: 1.28; previous revision: 1.27
done
Comment 4 Jan Becicka 2005-03-30 14:23:07 UTC
NPE is fixed. The rest of issue is really corner case -> P4.
Comment 5 Jan Becicka 2006-10-26 16:26:36 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 6 Quality Engineering 2007-09-20 11:49:36 UTC
Reorganization of java component