File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ion/src/test/java/tools/jackson/dataformat/ion Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments