Skip to content
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.

Extra slash in XSD location prevents customization #774

Closed
@glassfishrobot

Description

@glassfishrobot

When XSD import URL contain extra slashes (like ".../xsd/types//types.xsd"), the
referring XSD is impossible to customize: the schema location is either silently
accepted (but no customization is performed) or it is rejected, e.g. when trying
to specify schemaLocation="xsd/types//types.xsd", the following error is triggered:

[ERROR] "file:/C:/test/xsd/types//types.xsd" is not a part of this compilation.
Is this a mistake for "file:/C:/test/xsd/types/types.xsd"?
line 11 of file:/C:/test/jaxb-binding.xml

Expected: URLs are compared correctly.

For the attached test case the following is generated:

parsing a schema...
compiling a schema...
net\myexample\AnyTypeArray.java
net\myexample\ObjectFactory.java
net\myexample\package-info.java
examples\jaxb\ExecuteSPARQLRequest.java
examples\jaxb\ExecuteSPARQLResponse.java
examples\jaxb\ObjectFactory.java
examples\jaxb\RDFStorageServiceException.java
examples\jaxb\package-info.java

Expected: "net.myexample" package is replaced by "examples.jaxb" as customized.

I have used jaxb-ri-20100511 (v2.1.13).

Environment

Operating System: All
Platform: All

Affected Versions

[2.1.13]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions