Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

mapping - default mapping of class is incorrect #39

Open
glassfishrobot opened this issue Oct 18, 2004 · 7 comments
Open

mapping - default mapping of class is incorrect #39

glassfishrobot opened this issue Oct 18, 2004 · 7 comments

Comments

@glassfishrobot
Copy link

In the JAXB 2.0 ED 0.40, the default mapping of class is xs:all. It should be
xs:sequence; this has already been agreed to earlier in the JAXB 2.0 EG.
The specific error is:

Error: Section 8.8.1.1, "Synopsis" reads

public @interface XmlType {
String name();
String[] propOrder() default {}; ***** incorrect default *****
String targetNamespace() default "##default" ;
}

However it should read

public @interface XmlType {
String name();
String[] propOrder() default ""; ****** correct default ******
String targetNamespace() default "##default" ;

With the above change, the class would be mapped to xs:sequence
(see table, 8-5, "Mapping: Class body to Model Group Component").

Note: The above bug does not exist in the javadoc for
the javax.xml.bind.annotation.XmlType annotation.

Environment

Operating System: All
Platform: All

Affected Versions

[2.0 v0.4]

@glassfishrobot
Copy link
Author

Reported by sekhar

@glassfishrobot
Copy link
Author

Was assigned to sekhar

@glassfishrobot
Copy link
Author

sekhar said:
Minor fix to the summary description

@glassfishrobot
Copy link
Author

kohsuke said:
Created an attachment (id=2)
Proposed diff

@glassfishrobot
Copy link
Author

File: diff
Attached By: kohsuke

@glassfishrobot
Copy link
Author

kohsuke said:
Oops, the attachment was meant to be on another issue.
Please disregard.

@glassfishrobot
Copy link
Author

This issue was imported from java.net JIRA JSR222-39

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant