Bug 4355 - Is wording "It must specify a valid XML boolean value" specific enough?
Is wording "It must specify a valid XML boolean value" specific enough?
Status: CLOSED FIXED
Product: jbatch
Classification: Unclassified
Component: source
1
PC Windows
: P5 enhancement
: ---
Assigned To: cvignola
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-20 18:59 UTC by ScottKurz
Modified: 2013-01-16 17:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ScottKurz 2012-11-20 18:59:36 UTC
There is an XSD boolean, and I think what you're really trying to say here is that you want to accept
'true'
'false'
and anything else is an error (FAILED state).

In contrast to say Boolean.parseBoolean() which will match 'true' ignoring case and which defaults to false rather than blowing up.

If so, maybe simply saying it can be either 'true' or 'false' would be better.   

This is the definition for multiple attributes in the spec (e.g. /job/@restartable)
Comment 1 cvignola 2012-12-06 22:41:07 UTC
ok - will say 'true' or 'false'