Skip to Navigation | Skip to Content

Ref_impl_Java mailing list archives

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Wrong assumed value for DvBoolean in Java


2009/10/17 pablo pazos <pazospablo@hotmail.com>
Hi,

I have another problem with assumedValue of the DvBoolean, may be you can help me out.

If I've this (I mean "no assumed value"):


DV_BOOLEAN matches {
     value matches {True, False}
}

The assumed value of this node in the AOM instance is "false" and I think it must be a "null" assumed value.

Is it the spected behavior?
Is correct to have a null assumed value for a CBoolean constraint?
Any ideas?


Thanks a lot,
Pablo Pazos Gutiérrez.





Hi Pablo,

The assumedValue attribute of CBoolean is a primitive boolean so it can't return null. In the case you provided, it's better to check if hasAssumedValue returns true before proceed to take assumedValue.

By the way, please in the future try not to reply to lengthy posts directly since the response mail can be too big to pass the list server.

Cheers,
Rong