Project

Profile

Help

Bug #6476

closed

XPathParser.parseNamespaceTest()

Added by Michael Kay 6 days ago. Updated 6 days ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2024-07-10
Due date:
% Done:

0%

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

Description

This bug may be symptomless - I encountered it during development of Saxon 13 and I don't know if the relevant code is executed in previous releases.

XPathParser.makeNamespaceTest() contains the code:

        if (prefix.startsWith("Q{")) {
            String uri = prefix.substring(2, prefix.length() - 2);
            return new NamespaceTest(pool, nodeKind, NamespaceUri.of(uri));
        }

This truncates the last character of the URI. It should be prefix.length() - 1.

Please register to edit this issue

Also available in: Atom PDF