beckchr / staxon

JSON via StAX
107 stars 47 forks source link

AutoPrimitiveTarget regex deciding BigDecimal, not String #29

Closed DaHarris closed 7 years ago

DaHarris commented 9 years ago

I have a string "493188617199e1170000000000000000" that is being picked up by AutoPrimitiveTarget as a BigDecimal and is crashing the xml converter as a NumberFormatException. It would be great if these exceptions were handled gracefully and fell back to string.

beckchr commented 9 years ago

Thank you, makes sense. Just committed a fix, please try it.