Skip to content

Commit 3444205

Browse files
committed
...
1 parent 63ef476 commit 3444205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/fasterxml/jackson/core/fuzz/Fuzz61198_1169_NumberParseTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void testLeadingPlusSignMalformedOther() throws Exception {
3232
private void _testLeadingPlusMalformed(JsonFactory f, int mode) throws Exception
3333
{
3434
// But also, invalid case:
35-
try (JsonParser p = createParser(f, mode, "[ +\0 1 ")) {
35+
try (JsonParser p = createParser(f, mode, "[ +X 1 ")) {
3636
assertToken(JsonToken.START_ARRAY, p.nextToken());
3737
try {
3838
JsonToken t = p.nextToken();
@@ -43,7 +43,7 @@ private void _testLeadingPlusMalformed(JsonFactory f, int mode) throws Exception
4343
p.getIntValue();
4444
fail("Should not pass, got: "+t);
4545
} catch (JsonParseException e) {
46-
verifyException(e, "Unexpected character (");
46+
verifyException(e, "Unexpected character ('X' (code 88");
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)