Skip to content

Commit 49a394f

Browse files
committed
Revert unintented test change
1 parent c385faf commit 49a394f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ion/src/test/java/tools/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
IonParser bigIntLongParser = (IonParser) new IonFactory().createParser(ObjectReadContext.empty(),
8282
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)