Project

Profile

Help

Bug #5862

closed

Predicates.hasLocalName("") doesn't match unnamed nodes

Added by Michael Kay about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
s9api API
Sprint/Milestone:
-
Start date:
2023-01-27
Due date:
% Done:

100%

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

Description

The Javadoc for Predicates.hasLocalName() says that if the supplied name is an empty string, the predicate will match nodes having no name (for example a namespace node for the default namespace). This is not the case; the predicate returns false in this case.

Actions #1

Updated by Michael Kay about 1 year ago

  • Status changed from New to Resolved
  • Applies to branch 10, 11, 12, trunk added
  • Fix Committed on Branch 10, 11, 12, trunk added
  • Platforms .NET, Java added

Fixed for the 10, 11, and 12 branches.

Tested by the unit test for bug #5859.

I've also made the corresponding change for SaxonCS 11 and 12; although the documentation was less explicit about this case, it makes sense to keep the behaviour aligned.

Actions #2

Updated by O'Neil Delpratt about 1 year ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 11.5 added

Bug fix applied in the Saxon 11.5 maintenance release.

Actions #3

Updated by O'Neil Delpratt about 1 year ago

  • Fixed in Maintenance Release 10.9 added

Bug fix applied in the Saxon 10.9 maintenance release. Leaving bug issue marked as resolved until applied in the next Saxon 12 maintenance.release.

Actions #4

Updated by O'Neil Delpratt about 1 year ago

  • Status changed from Resolved to Closed
  • Fixed in Maintenance Release 12.1 added

Bug fix applied in the Saxon 12.1 maintenance release.

Please register to edit this issue

Also available in: Atom PDF