Root cause for failing test for testMangledIntsBytes()
in ParserErrorHandlingTest
#1035
Labels
2.16
Issue planned (at earliest) for 2.16
I was looking at the failing tests directory and was trying to debug the failing tests in
ParseErrorHandling105Test.java
file, I realised there was a similar test commented out inParserErrorHandlingTest.java
under packagecom.fasterxml.jackson.core.read
in line 29 i.e._testMangledNumbersInt(MODE_DATA_INPUT);
I saw a comment wondering how
_testMangledNumbersFloat(MODE_DATA_INPUT);
was working.With my investigation I found out that during
_testMangledNumbersIn()
execution,_verifyRootSpace()
inline 1088
ofUTF8DataInputJsonParser.java
gets called with_nextByte = -1
and hence satisfies the condition inline 1278
i.e.if (ch <= INT_SPACE)
hence doesn't throw a missing WS error. Where as for_testMangledNumbersFloat
we set the value as_nextByte = c;
inline 1257
and hence it would throw the exception.I hope this explains the root cause of the issue, happy to receive any feedback or suggestions. Apologies for my verbose explanation.
The text was updated successfully, but these errors were encountered: