@@ -21,9 +21,6 @@ class NonStandardNumberParsingTest
21
21
.enable (JsonReadFeature .ALLOW_LEADING_DECIMAL_POINT_FOR_NUMBERS )
22
22
.enable (JsonReadFeature .ALLOW_TRAILING_DECIMAL_POINT_FOR_NUMBERS )
23
23
.build ();
24
- private final String ISSUE_4694_VALUE =
25
- "-11000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ;
26
-
27
24
28
25
protected JsonFactory jsonFactory () {
29
26
return JSON_F ;
@@ -246,41 +243,6 @@ void leadingDotInNegativeDecimalAllowedReader() throws Exception {
246
243
_testLeadingDotInNegativeDecimalAllowed (jsonFactory (), MODE_READER_THROTTLED );
247
244
}
248
245
249
- // https://github.com/FasterXML/jackson-databind/issues/4694
250
- @ Test
251
- void databind4694 () throws Exception {
252
- final BigDecimal expected = new BigDecimal (ISSUE_4694_VALUE );
253
- for (int mode : ALL_MODES ) {
254
- try (JsonParser p = createParser (mode , String .format (" %s " , ISSUE_4694_VALUE ))) {
255
- assertEquals (JsonToken .VALUE_NUMBER_FLOAT , p .nextToken ());
256
- assertEquals (expected , p .getDecimalValue ());
257
- assertFalse (p .isNaN ());
258
- }
259
- }
260
- }
261
-
262
- void databind4694Double () throws Exception {
263
- final Double expected = new Double (ISSUE_4694_VALUE );
264
- for (int mode : ALL_MODES ) {
265
- try (JsonParser p = createParser (mode , String .format (" %s " , ISSUE_4694_VALUE ))) {
266
- assertEquals (JsonToken .VALUE_NUMBER_FLOAT , p .nextToken ());
267
- assertEquals (expected , p .getDoubleValue ());
268
- assertFalse (p .isNaN ());
269
- }
270
- }
271
- }
272
-
273
- void databind4694Float () throws Exception {
274
- final Float expected = new Float (ISSUE_4694_VALUE );
275
- for (int mode : ALL_MODES ) {
276
- try (JsonParser p = createParser (mode , String .format (" %s " , ISSUE_4694_VALUE ))) {
277
- assertEquals (JsonToken .VALUE_NUMBER_FLOAT , p .nextToken ());
278
- assertEquals (expected , p .getFloatValue ());
279
- assertFalse (p .isNaN ());
280
- }
281
- }
282
- }
283
-
284
246
private void _testLeadingDotInDecimalAllowed (JsonFactory f , int mode ) throws Exception
285
247
{
286
248
try (JsonParser p = createParser (f , mode , " .125 " )) {
0 commit comments