Project

Profile

Help

Bug #6490

open

XPathCompiler.setDecimalFormatProperty()

Added by Michael Kay 1 day ago. Updated 1 day ago.

Status:
New
Priority:
Normal
Assignee:
Category:
s9api API
Sprint/Milestone:
-
Start date:
2024-07-25
Due date:
% Done:

0%

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

Description

The C# version of this method documents that you can set a property of the default/unnamed decimal format by setting the format argument to null. But it simply calls the Java version of the method which explicitly states that passing null is not allowed, and that properties of the default/unnamed decimal format cannot be set this way.

Complicating the matter, the SaxonCS QT3 test driver calls this method supplying null; this crashes, and the exception is ignored. Rather surprisingly, the test then goes on to report a pass.

The Java QT3 driver dives in at a lower level, calling environment.xpathCompiler.getUnderlyingStaticContext().getDecimalFormatManager() and updating the decimal format object directly.

Actions #1

Updated by Michael Kay 1 day ago

  • Description updated (diff)

Please register to edit this issue

Also available in: Atom PDF