Actions
Bug #6167
closedEnclosing modes do not work with JIT enabled
Start date:
2023-08-13
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java
Description
If the proposed XSLT 4.0 feature of enclosing modes (an xsl:mode
declaration with child xsl:template
declarations) is used with JIT enabled, a ClassCastException occurs during stylesheet compilation. For example:
java.lang.ClassCastException: class net.sf.saxon.style.XSLMode cannot be cast to class net.sf.saxon.style.XSLTemplate (net.sf.saxon.style.XSLMode and net.sf.saxon.style.XSLTemplate are in unnamed module of loader 'app')
at com.saxonica.ee.trans.TemplateRuleInitializer.<init>(TemplateRuleInitializer.java:47)
at com.saxonica.ee.trans.TemplateRuleEE.prepareInitializer(TemplateRuleEE.java:74)
at net.sf.saxon.style.XSLTemplate.createSkeletonTemplate(XSLTemplate.java:815)
Please register to edit this issue
Actions