Bug #3746
closed
ClassCastException using fn:serialize() with html-version property
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
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.
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)
- 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.
- 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