Project

Profile

Help

Bug #3746

closed

ClassCastException using fn:serialize() with html-version property

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2018-04-16
Due date:
% Done:

100%

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

Description

A ClassCastException occurs when the properties supplied to the fn:serialize() function include the html-version property. There is a failure attempting to cast a FastStringBuffer to a String.

Actions #1

Updated by Michael Kay over 6 years ago

This was reported on the help forum with the stack trace

Caused by: java.lang.ClassCastException: net.sf.saxon.tree.util.FastStringBuffer cannot be cast to java.lang.String

 [java]     at net.sf.saxon.functions.Serialize.setSerializationParams(Serialize.java:365)

 [java]     at net.sf.saxon.functions.Serialize.evalSerialize(Serialize.java:485)

 [java]     at net.sf.saxon.functions.Serialize.call(Serialize.java:441)

 [java]     at net.sf.saxon.functions.Serialize.call(Serialize.java:49)

 [java]     at net.sf.saxon.expr.FunctionCall.iterate(FunctionCall.java:547)
Actions #2

Updated by Michael Kay over 6 years ago

  • Status changed from New to Resolved
  • Applies to branch 9.8, trunk added
  • Fix Committed on Branch 9.8, trunk added

Created a QT3 test case serialize-html-001 which reproduces the problem.

Actions #3

Updated by O'Neil Delpratt over 6 years ago

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

Bug fix applied in the Saxon 9.8.0.12 maintenance release.

Please register to edit this issue

Also available in: Atom PDF