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 45834 - Nested enums do not work
Summary: Nested enums do not work
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-02 11:17 UTC by Jan Lahoda
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project. (7.65 KB, application/octet-stream)
2004-07-02 11:36 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2004-07-02 11:17:00 UTC
NB trunk build 200407011917, JDK1.5.0-beta2-b51.

1. Download the attached test project.
2. Open it in the IDE and open file test8/Test8.
3. Try to invoke code completion at line 8 and 10.
The result is:
a) after InnerEnum. the result is only "class"
b) after e. the result is empty.
Comment 1 Jan Lahoda 2004-07-02 11:36:39 UTC
Created attachment 16117 [details]
Test project.
Comment 2 Dusan Balek 2004-07-07 12:36:56 UTC
The problem is minor bug in the JavaClass.isInner() method
implementation which always returns "false" (even for inner classes). 

Fixed in [maintrunk].

Checking in JavaClassImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaClassImpl.java,v
 <--  JavaClassImpl.java
new revision: 1.19; previous revision: 1.18
done
Comment 3 Jan Lahoda 2004-07-12 13:41:20 UTC
OK in NB continous build 20040712-1006.
Comment 4 Quality Engineering 2007-09-20 12:47:52 UTC
Reorganization of java component