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

xs:choice of foreign types generates bad code #193

Closed
eed3si9n opened this Issue Feb 24, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@eed3si9n
Owner

eed3si9n commented Feb 24, 2013

steps

  1. compile a schema with a xs:choice made up of several elements of a foreign complex type.
  <xs:complexType name="ForeignChoiceTest">
    <xs:choice>
      <xs:element name="base64Binary1" type="xmime:base64Binary"/>
      <xs:element name="base64Binary2" type="xmime:base64Binary"/>
    </xs:choice>
  </xs:complexType>

problem

  1. the generated foreign complex type inherits choice trait.
trait Base64Binaryable extends ForeignChoiceTestOption {
  val value: scalaxb.Base64Binary
  val attr_xmimecontentType: Option[String]
}

expectation

foreign choices are mapped as DataRecord[Any], so Base64Binaryable should not inherit ForeignChoiceTestOption.

@eed3si9n eed3si9n closed this in 0c815de Feb 24, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment