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 1
1
package com .fasterxml .jackson .dataformat .xml .deser ;
2
2
3
3
import java .io .IOException ;
4
+ import java .io .UncheckedIOException ;
4
5
import java .io .Writer ;
5
6
import java .math .BigDecimal ;
6
7
import java .math .BigInteger ;
12
13
13
14
import com .fasterxml .jackson .core .*;
14
15
import com .fasterxml .jackson .core .base .ParserMinimalBase ;
16
+ import com .fasterxml .jackson .core .exc .StreamConstraintsException ;
15
17
import com .fasterxml .jackson .core .io .IOContext ;
16
18
import com .fasterxml .jackson .core .io .NumberInput ;
17
19
import com .fasterxml .jackson .core .util .ByteArrayBuilder ;
@@ -630,7 +632,12 @@ public boolean isExpectedNumberIntToken()
630
632
}
631
633
}
632
634
// 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
+ }
634
641
_numberBigInt = NumberInput .parseBigInteger (
635
642
text , isEnabled (StreamReadFeature .USE_FAST_BIG_NUMBER_PARSER ));
636
643
_numTypesValid = NR_BIGINT ;
You can’t perform that action at this time.
0 commit comments