Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
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

Description

@glassfishrobot

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]

Activity

  1. glassfishrobot commented on Oct 18, 2004

    @glassfishrobot
    Author

    Reported by sekhar

  2. glassfishrobot commented on Oct 18, 2004

    @glassfishrobot
    Author

    Was assigned to sekhar

  3. glassfishrobot commented on Oct 18, 2004

    @glassfishrobot
    Author

    sekhar said:
    Minor fix to the summary description

  4. glassfishrobot commented on Oct 20, 2004

    @glassfishrobot
    Author

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

  5. glassfishrobot commented on Oct 20, 2004

    @glassfishrobot
    Author

    File: diff
    Attached By: kohsuke

  6. glassfishrobot commented on Oct 28, 2004

    @glassfishrobot
    Author

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

  7. glassfishrobot commented on May 11, 2017

    @glassfishrobot
    Author

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

  8. added this to the milestone 1 milestone on May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions