We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0517368 commit 72ba15aCopy full SHA for 72ba15a
1 file changed
ion/src/test/java/tools/jackson/dataformat/ion/IonNumberOverflowTest.java
@@ -81,7 +81,8 @@ public void testLongAsBigIntegerSize() throws Exception {
81
IonParser bigIntLongParser = (IonParser) new IonFactory().createParser(ObjectReadContext.empty(),
82
bigIntLongValue.toString());
83
assertEquals(JsonToken.VALUE_NUMBER_INT, bigIntLongParser.nextToken());
84
- assertEquals(JsonParser.NumberType.BIG_INTEGER, bigIntLongParser.getNumberType());
+ // Ion 1.11.11+ changed behavior: values that fit in long are now classified as LONG
85
+ assertEquals(JsonParser.NumberType.LONG, bigIntLongParser.getNumberType());
86
assertEquals(JsonParser.NumberTypeFP.UNKNOWN, bigIntLongParser.getNumberTypeFP());
87
assertEquals(bigIntLongValue.longValue(), bigIntLongParser.getLongValue());
88
}
0 commit comments