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 20849 - MOF Enumerations can't be queried for their labels
Summary: MOF Enumerations can't be queried for their labels
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-25 18:18 UTC by Svata Dedic
Modified: 2002-07-19 15:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch to fix the bug (3.67 KB, patch)
2002-02-25 18:22 UTC, Svata Dedic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2002-02-25 18:18:54 UTC
I was trying to get enumeration's labels; the only way I've discovered is to get
the metaclass (instanceof EnumerationType) and access its "labels" attribute.
For MOF enumerations (VisibilityKind, ScopeKind, ...) the returned collection
contained only the first label - so VisibilityKind reported "public_vis" as its
only member.
Comment 1 Svata Dedic 2002-02-25 18:22:44 UTC
Created attachment 4812 [details]
Proposed patch to fix the bug
Comment 2 Svata Dedic 2002-02-26 06:46:59 UTC
OK, not all clients are blocked by this :-)
Comment 3 Martin Matula 2002-02-26 09:27:17 UTC
Svata, this is only the case during the boot sequence and it is done
like this intentionally. The MDR reads only parts of MOF to bootstrap
using BootReader and then its read the complete MOF using the standard
XMI reader and the bootMOF (incomplete MOF) is deleted. When you are
trying to patch the MDR core and touching the MDR data before the boot
sequence is finished, you need to keep this in mind.