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

Summary: MOF Enumerations can't be queried for their labels
Product: java Reporter: Svata Dedic <sdedic>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Proposed patch to fix the 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.