File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/com/fasterxml/jackson/dataformat/xml/deser Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11package com .fasterxml .jackson .dataformat .xml .deser ;
22
33import java .io .IOException ;
4+ import java .io .UncheckedIOException ;
45import java .io .Writer ;
56import java .math .BigDecimal ;
67import java .math .BigInteger ;
1213
1314import com .fasterxml .jackson .core .*;
1415import com .fasterxml .jackson .core .base .ParserMinimalBase ;
16+ import com .fasterxml .jackson .core .exc .StreamConstraintsException ;
1517import com .fasterxml .jackson .core .io .IOContext ;
1618import com .fasterxml .jackson .core .io .NumberInput ;
1719import com .fasterxml .jackson .core .util .ByteArrayBuilder ;
@@ -630,7 +632,12 @@ public boolean isExpectedNumberIntToken()
630632 }
631633 }
632634 // finally, need BigInteger
633- streamReadConstraints ().validateIntegerLength (text .length ());
635+ try {
636+ streamReadConstraints ().validateIntegerLength (text .length ());
637+ } catch (StreamConstraintsException e ) {
638+ // Ugh. This method in API ought to expose IOException
639+ throw new UncheckedIOException (e );
640+ }
634641 _numberBigInt = NumberInput .parseBigInteger (
635642 text , isEnabled (StreamReadFeature .USE_FAST_BIG_NUMBER_PARSER ));
636643 _numTypesValid = NR_BIGINT ;
You can’t perform that action at this time.
0 commit comments