[JAXB-928] Improper unmarshalling of invalid integer value while schema validation is turned off Created: 04/Nov/12  Updated: 25/Jan/13

Status: In Progress
Project: jaxb
Component/s: runtime
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: arnabbiswas1 Assignee: Iaroslav Savytskyi
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

apache cxf, linux


Tags: jaxb, unmarshalling

 Description   

In our product we use Apache CXF as web services framework. Because of performance restriction, the schema validation has been set to false. Now, for an integer element if invalid value is provided, JAXB is unmarshaling it to som other value. For example,

9999999999 is converted into 1410065407.

988888888888 is converted into 1046410808.



 Comments   
Comment by Iaroslav Savytskyi [ 25/Jan/13 ]

Blaise comment here: http://stackoverflow.com/questions/13216624/jaxb-unmarshalling-of-invalid-integer

According to the spec we have to:

  • set 0 into int
  • set null into Integer
  • throw error.
Generated at Tue Sep 27 00:49:09 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.