I have a schema that uses durations (e.g., xs:duration) types.

I have discovered that Castor uses a short when setting
the milliseconds for a duration.

e.g, consider the following duration string 
"P0000Y00M00DT00H00M56.326745125S"

Castor passes the number "326745125" to it's
Duration.setMillis() method
e.g., result.setMilli((short)number);

A java short has a max of 32767 or in other words
milliseconds can only be specifed with 4 significant
digits.

Is this a current limitation of Castor?  I tested with Castor 9.5.3.

--
g GE Global Research
____________________________
G. Bowden Wise 
mailto:[EMAIL PROTECTED]
Information and Decision Technologies 
GE Global Research Center 
Building K1, Room 5B2C 
PO Box 8                            | One Research Circle 
Schenectady, NY 12301   | Niskayuna NY 12309 
Phone: 518-387-7833; Dialcom: 8*833-7833; Fax: 518-387-6104 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to