Actions
Bug #2812
closedIncorrect type analysis of non-executed xsl:for-each-group body
Start date:
2016-06-24
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.6, 9.7, trunk
Fix Committed on Branch:
9.6, 9.7, trunk
Description
See https://saxonica.plan.io/boards/3/topics/6458?pn=1
The static analysis determines that the value of the select expression is an empty sequence. It should then conclude that the body will never be executed, rather than concluding that it will be executed with no context item.
Updated by Michael Kay over 8 years ago
- Status changed from New to In Progress
ForEach.typeCheck() gets this right, with the code:
ItemType selectType = getSelect().getItemType();
if (selectType == ErrorType.getInstance()) {
return Literal.makeEmptySequence();
}
We should use the same code in ForEachGroup.typeCheck().
Updated by Michael Kay over 8 years ago
- Subject changed from Incorrect type analysis of non-executed loop to Incorrect type analysis of non-executed xsl:for-each-group body
- Category set to Diagnostics
- Status changed from In Progress to Resolved
- Assignee set to Michael Kay
- Applies to branch 9.6, 9.7, 9.8 added
- Fix Committed on Branch 9.6, 9.7, 9.8 added
Patch committed on the 9.6, 9.7, and 9.8 branches.
Updated by O'Neil Delpratt over 8 years ago
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.7.0.7 added
Bug fix applied in the Saxon 9.7.0.7 maintenance release.
Updated by O'Neil Delpratt almost 8 years ago
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.6.0.10 added
Bug fix applied on the Saxon 9.6.0.10 maintenance release.
Updated by O'Neil Delpratt over 7 years ago
- Applies to branch trunk added
- Applies to branch deleted (
9.8)
Updated by O'Neil Delpratt over 7 years ago
- Fix Committed on Branch trunk added
- Fix Committed on Branch deleted (
9.8)
Please register to edit this issue
Actions