From a0c853a52ff08bad659e9051cf3a1a76e62059cf Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 8 Nov 2023 01:05:06 +0100 Subject: [PATCH] Change error mesage to mention -INF (#1136) --- src/main/java/com/fasterxml/jackson/core/base/ParserBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java b/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java index 0dad33ef87..8188d31fb8 100644 --- a/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java +++ b/src/main/java/com/fasterxml/jackson/core/base/ParserBase.java @@ -1410,7 +1410,7 @@ protected String _validJsonTokenList() throws IOException { @SuppressWarnings("deprecation") protected String _validJsonValueList() throws IOException { if (isEnabled(Feature.ALLOW_NON_NUMERIC_NUMBERS)) { - return "(JSON String, Number (or 'NaN'/'INF'/'+INF'), Array, Object or token 'null', 'true' or 'false')"; + return "(JSON String, Number (or 'NaN'/'+INF'/'-INF'), Array, Object or token 'null', 'true' or 'false')"; } return "(JSON String, Number, Array, Object or token 'null', 'true' or 'false')"; }