Whitespace processing for xs:anyURI type · Issue #790 · javaee/jaxb-v2 (original) (raw)

This repository was archived by the owner on Feb 5, 2019. It is now read-only.

This repository was archived by the owner on Feb 5, 2019. It is now read-only.

@glassfishrobot

Description

@glassfishrobot

Whitespaces are not collapsed during XML unmarshal for anyURI schema type.

The tested target Java types were String (was not trimmed in the result) and
java.net.URI (was null in the result).

The anyURI type has the following restriction:
<xs:restriction base="xs:anySimpleType">
<xs:whiteSpace value="collapse" fixed="true" id="anyURI.whiteSpace"/>

This issue seems to be related to the Issue#396

Environment

Operating System: All
Platform: All

Affected Versions

[2.1.13]