Project

Profile

Help

Bug #5710

open

Saxon .NET 10 : format supplied to XPathCompiler.SetDecimalFormatProperty must not be null

Added by Michael Kay about 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2022-10-05
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

The API documentation for XPathCompiler.SetDecimalFormatProperty in Saxon.10 on .NET says that the format argument can be null, but this causes a null reference exception.

Actions #1

Updated by Michael Kay about 2 months ago

The underlying Java code does not allow a null to be supplied.

So we must (a) change the ,NET API documentation, (b) check for null, (c), change the test driver so it doesn't try calling the method with a null argument.

Actions #2

Updated by Michael Kay about 2 months ago

I've now changed it so the test driver doesn't call this method if the decimal format is unnamed. The consequence is that the relevant format-number tests are failing under XPath. They work in SaxonJ, and I'm having difficulty understanding why.

Please register to edit this issue

Also available in: Atom PDF