Project

Profile

Help

Bug #6176

closed

Failure to test for UncheckedXPathException

Added by Michael Kay over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2023-08-17
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, 12, trunk
Fix Committed on Branch:
11, 12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

Some low-level utility methods in Saxon throw an UncheckedXPathException; this is so that they can implement the increasing number of JDK interfaces (Iterator being a classical example) that don't allow checked exceptions.

This puts the onus on the calling code to check for UncheckedXPathException and convert it to a (checked) XPathException.

We have a crash in test case map:for-each-405 caused by the fact that method FunctionSequenceCoercer.simplify() fails to make this check; while we're about it we'll search for other methods that call SequenceTool.toGroundedValue() and fail to check for the exception.

Please register to edit this issue

Also available in: Atom PDF