Skip to content

Commit 9742254

Browse files
committed
...
1 parent 147fcf5 commit 9742254

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ion/src/test/java/com/fasterxml/jackson/dataformat/ion/IonNumberOverflowTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ public void testLongAsBigIntegerSize() throws Exception {
8181
BigInteger bigIntLongValue = new BigInteger(Long.MAX_VALUE + "").subtract(BigInteger.TEN);
8282
IonParser bigIntLongParser = (IonParser) new IonFactory().createParser(bigIntLongValue.toString());
8383
assertEquals(JsonToken.VALUE_NUMBER_INT, bigIntLongParser.nextToken());
84-
assertEquals(JsonParser.NumberType.BIG_INTEGER, bigIntLongParser.getNumberType());
84+
// 23-Oct-2025: Ion 1.11.11+ changed behavior: values that fit in long are now
85+
// classified as LONG (was BIG_INTEGER before)
86+
assertEquals(JsonParser.NumberType.LONG, bigIntLongParser.getNumberType());
8587
assertEquals(JsonParser.NumberTypeFP.UNKNOWN, bigIntLongParser.getNumberTypeFP());
8688
assertEquals(bigIntLongValue.longValue(), bigIntLongParser.getLongValue());
8789
}

0 commit comments

Comments
 (0)