Deprecated results parse methods with no handler do not fail parse for valid, non-matching, documents

Description

The BooleanQueryResultParser.parse and TupleQueryResultParser.parse methods no longer throw exceptions if they are used to parse tuple or boolean results, respectively, if there is no handler set. If a handler is set, the user is able to deduce the failure based on the methods that were called, which is why QueryResultIO.parse that was used in the compliance tests failed to pick up the regression.

Workaround is to use QueryResultIO.parse which still works as expected as it knows what the results were actually parsed as, even after a successful parse of the other results type, as it uses a handler in all cases internally.

Environment

None

Status

Assignee

Peter Ansell

Reporter

Peter Ansell

Labels

None

Fix versions

Affects versions

Priority

Minor
Configure