eclipse-ee4j / jaxb-fi

Apache License 2.0
8 stars 10 forks source link

SAXDocumentParser does not support custom encoding algorithms #32

Open Tomas-Kraus opened 14 years ago

Tomas-Kraus commented 14 years ago

Hi,

during construction, the AttributeHolder is initialized with empty _registeredEncodingAlgorithms. Registering custom encoding algorithms later, will not affect the AttributeHolder and thus prevents string serialization for generic SAX string interfaces.

A workaround is to derive from SAXDocumentParser and override setRegisteredEncodingAlgorithms, i.e:

public class X3DFIDocumentParser extends SAXDocumentParser {

@Override public void setRegisteredEncodingAlgorithms(Map algorithms) { super.setRegisteredEncodingAlgorithms(algorithms); this._attributes = new AttributesHolder(this.getRegisteredEncodingAlgorithms()); } }

Could also be the solution for this issue.

Best regards, Kristian

Environment

Operating System: All Platform: All

Affected Versions

[current]

Tomas-Kraus commented 5 years ago
Tomas-Kraus commented 14 years ago

@glassfishrobot Commented Reported by tycoon_de

Tomas-Kraus commented 14 years ago

@glassfishrobot Commented Was assigned to oleksiys

Tomas-Kraus commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA FI-32