-
Notifications
You must be signed in to change notification settings - Fork 110
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
random failure on globalBindings customization #687
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented the method com.sun.tools.xjc.reader.internalizer.DOMForest.getOneDocument() is used by com.sun.tools.xjc.reader.internalizer.Internalizer [line: 311] to (randomly) choose a schema document that gets to carry the xjc globalBinding If the chosen document is not actually defining a namespace, but happens to be com.sun.tools.xjc.reader.xmlschema.BGMBuilder.promoteGlobalBIndings [line: will report failure because it finds more than one schemas with globalBinding Suggestions for remediation:
|
@glassfishrobot Commented |
@glassfishrobot Commented The bug is that xjc assigns these global scope binding to a random schema I deem this to be an important defect because:
|
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented
|
@glassfishrobot Commented
By removing the serializable part I could run the build successfully:
|
@glassfishrobot Commented
the check for equality fails on the serializable property.
but it should rather check the uid property of the BISerializable object
|
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
When a (anonymous) schema document is (syntactically) included in more than one
other schema document, global bindings specified in a seperate binding document
can cause a failure:
Moving the same set of schema files to another location can change the
behaviour.
Environment
Operating System: All
Platform: All
Affected Versions
[2.2]
The text was updated successfully, but these errors were encountered: