Skip to content

TypeMarshaller.marshalTypeToOutputStream(Object typeObject, OutputStream os, String styleSheet) doesn't work after Java 8 #3

@taojing2002

Description

@taojing2002

In this method, there is one line code (line 85):

jaxbMarshaller.setProperty("com.sun.xml.internal.bind.xmlHeaders", String.format("<?xml-stylesheet type=\"text/xsl\" href=\"%s\" ?>", styleSheet));

Because we changed the JAXB implementation after Java 8, the name of property is not valid now. It should be replaced by:

com.sun.xml.bind.xmlHeaders

Otherwise, it throws an exception.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions