Bug #5710
closedSaxon .NET 10 : format supplied to XPathCompiler.SetDecimalFormatProperty must not be null
0%
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.
Updated by Michael Kay about 2 years 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.
Updated by Michael Kay about 2 years 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.
Updated by O'Neil Delpratt almost 2 years ago
- Fix Committed on Branch 10 added
For the Saxon 10 release I have modified XPathCompiler.SetDecimalFormatProperty to check for null. If the format argument is null throw a StaticError exception.
Updated by Michael Kay over 1 year ago
- Status changed from New to Closed
- Fixed in Maintenance Release 10.9 added
- Platforms .NET added
I'm assuming this was fixed in 10.9, and that we failed to update the issue to say so.
Please register to edit this issue