• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB validation - maxInclusive range

 
kri shan
Ranch Hand
Posts: 1460
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the XSD maxInclusive value defined 999999.9. When i test 9999999.9 (or) 9999999.9, JAXB gives following valiadtion error.

Attribute has bad value. the value is out of range (maxInclusive specifies 999,999.875).


How 9 is converted to 875 ?
 
Paul Clapham
Sheriff
Pie
Posts: 20719
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presumably the calculation is being done with float values (not double). However that shouldn't be a problem because the same rounding will apply to both the maxInclusive value and the number being compared to it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic