Project

Profile

Help

Bug #2727

closed

format-date, AIOOB

Added by Christian Grün about 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Low
Category:
XPath conformance
Sprint/Milestone:
Start date:
2016-04-27
Due date:
% Done:

100%

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

Description

Here’s another bug, maybe related to the last one I posted. The following query…

format-date(current-date(), '[D01]', '')

…raises an exception:

java.lang.ArrayIndexOutOfBoundsException: 3
        at net.sf.saxon.functions.FormatDate.call(FormatDate.java:755)
        at net.sf.saxon.functions.FormatDate.call(FormatDate.java:37)
        at EE_main_0100498640.process(file:/c:/Users/user/Desktop/x.xq:1)
        at com.saxonica.ee.bytecode.CompiledExpression.process(CompiledExpression.java:69)
        at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:408)
        at net.sf.saxon.s9api.XQueryEvaluator.run(XQueryEvaluator.java:370)
        at net.sf.saxon.Query.runQuery(Query.java:900)
        at net.sf.saxon.Query.doQuery(Query.java:442)
        at net.sf.saxon.Query.main(Query.java:111)

Please register to edit this issue

Also available in: Atom PDF