Menu

#65 mof2client does not support ranges in valuemaps

WBEM_Services_0.95
open
nobody
5
2004-06-12
2003-05-20
Anonymous
No

mofcomp (or the various UnsignedInt* types in
javax.wbem.cim) does not correctly deal with range
specifications in valuemaps.

The CIM Specification addendum version 2 (see dmtf
spec document DSP007) modifies the definition of
valuemap to include the possibility of ranges...
specifically, integer ranges specified as a start and end
integer separated by two dots.

As an example: the enabledstate valuemap in
CIM_EnabledLogicalElement in CIM Schema 2.7.2 final
(Core27_CoreElements.mof) has as one of its
elements: "11..32767". As of the DSP007 addendum,
this is a valid specification. However, the mofcomp
currently generates the corresponding line in the
equivalent java class as:

final static UnsignedInt16
ENABLEDSTATEVALUEMAP_DMTF_RESERVED =
new UnsignedInt16("11..32767");

Since UnsignedInt16 does not have a constructor that
allows for ranges, the mofcomp-generated
CIM_EnabledLogicalElement java class throws a
NumberFormatException when an attempt is made to
create a new instance.

Discussion

  • Carl Chan

    Carl Chan - 2003-07-25
    • status: open --> closed
     
  • Jim Davis

    Jim Davis - 2003-07-26
    • status: closed --> open
     
  • Jim Davis

    Jim Davis - 2003-11-23
    • labels: 348299 --> java client codegen
    • assigned_to: jim_davis --> nobody
     
  • Jim Davis

    Jim Davis - 2004-06-12
    • summary: mofcomp does not support ranges in valuemaps --> mof2client does not support ranges in valuemaps
     

Log in to post a comment.