Project

Profile

Help

Bug #6167

closed

Enclosing modes do not work with JIT enabled

Added by Michael Kay 9 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
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)
Actions #1

Updated by Michael Kay 9 months ago

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

Simple code fix.

Actions #2

Updated by O'Neil Delpratt 5 months ago

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

Bug fix applied in the Saxon 12.4 maintenance release

Please register to edit this issue

Also available in: Atom PDF