Project

Profile

Help

Bug #4225

closed

Imprecise type inference for xml-to-json() function

Added by Michael Kay almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Sprint/Milestone:
-
Start date:
2019-05-24
Due date:
% Done:

100%

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

Description

The static type inferred for the result of the xml-to-json() function is item()? rather than xs:string()?.

This is unnecessarily imprecise, which means that optimizations on the enclosing expression don't kick in.

Actions #1

Updated by Michael Kay almost 5 years ago

  • Description updated (diff)
Actions #2

Updated by Michael Kay almost 5 years ago

  • Status changed from New to Resolved
  • Fix Committed on Branch 9.9, trunk added

Fixed by a simple change to the table of function signatures.

Actions #3

Updated by O'Neil Delpratt almost 5 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.9.1.4 added

Bug fix applied in the Saxon 9.9.1.4 maintenance release

Please register to edit this issue

Also available in: Atom PDF