Project

Profile

Help

Bug #3444

closed

IllegalStateException: local variable whose binding has been deleted, after eliminating common subexpressions in a pattern predicate

Added by Michael Kay over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2017-09-13
Due date:
% Done:

100%

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

Description

Branched from issue #3443:

I now tried running with -TP:profile.html and got an exception:

java.lang.IllegalStateException: *** Internal Saxon error: local variable encountered whose binding has been deleted

The problem seems to be with the group-starting-with pattern in

<xsl:for-each-group select="$versionsXML/*"

                        group-starting-with="*[not(preceding-sibling::*[1]/@digest = 

                                 @digest and int:nextDay(preceding-sibling::*[1]/@validToDate) = @validFromDate)]">

at sharedFunctions.xsl#251

(Note this is a compile-time problem; it typically arises because the extra code injected into the expression tree to support run-time profiling makes the optimizer's job more difficult).

Please register to edit this issue

Also available in: Atom PDF