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 45390 - Code completion on enums throws InvalidObjectException
Summary: Code completion on enums throws InvalidObjectException
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 19:00 UTC by psuk
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (1.16 KB, text/plain)
2004-06-22 19:01 UTC, psuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description psuk 2004-06-22 19:00:39 UTC
[trunk from CVS, 040622]
100% reproducible

1. Create new Java class file (TestEnum.java)
2. Type 
    public enum myEnum {Bubu}

somewhere before default constructor

3. Type
    myEnum.
   in the constructor to invoke code completion
   -> Code Completion pops up as expected
4. Press arrow-down key to navigate to Bubu
and you'll get exception:
InvalidObjectException
(probably when the CC searches for Javadoc)
Comment 1 psuk 2004-06-22 19:01:45 UTC
Created attachment 15921 [details]
exception
Comment 2 Martin Matula 2004-06-22 19:59:39 UTC
Fixed.

Checking in src/org/netbeans/modules/javacore/parser/ArrayMapper.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/ArrayMapper.java,v
 <--  ArrayMapper.java
new revision: 1.4; previous revision: 1.3
done
RCS file:
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/EnumConstInfoMeasure.java,v
done
Checking in
src/org/netbeans/modules/javacore/parser/EnumConstInfoMeasure.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/EnumConstInfoMeasure.java,v
 <--  EnumConstInfoMeasure.java
initial revision: 1.1
done
Comment 3 Jiri Skrivanek 2004-06-23 14:13:27 UTC
Please, fix it also in Qbuild branch QBE200406230100.
Comment 4 Martin Matula 2004-06-23 16:33:16 UTC
The issue was fixed before the branch was created so it should already
be in the qbuild branch.
Comment 5 Jiri Prox 2005-07-11 09:43:43 UTC
Verified in 4.0 (200504201630)
Comment 6 Quality Engineering 2007-09-20 10:01:32 UTC
Reorganization of java component