Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemagen creates an invalid xsd on JDK11 #129

Closed
andrehertwig opened this issue May 15, 2019 · 1 comment
Closed

schemagen creates an invalid xsd on JDK11 #129

andrehertwig opened this issue May 15, 2019 · 1 comment
Assignees
Milestone

Comments

@andrehertwig
Copy link

Hi
I don't know if this is a JDK related thing, but:
When i do a mvn clean verify with JDK 8 the resulting XSD has a correct syntax with prefix and defined namespace
Maven 3.6.0 / Oracle JDK 1.8.0_192

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0"> ... </xs:schema>

but if i switch to JDK 11 the prefix (on elements) is gone but namespace declaration is still prefixed
Maven 3.6.0 / Open JDK 11.0.2

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0"> ... </schema>

See attached test project: xsdschemagen.zip

@lennartj lennartj self-assigned this Jul 7, 2019
@lennartj lennartj added this to the Release 2.4.2 milestone Jul 7, 2019
@lennartj
Copy link
Member

lennartj commented Jul 7, 2019

This is fixed by the classworlds patch, and handled by the latest commit to master.
See #138 .

@lennartj lennartj closed this as completed Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants