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

long xs:sequence whose last item is nillable and unbounded generates bad code #194

eed3si9n opened this Issue Feb 24, 2013 · 0 comments


None yet
1 participant

eed3si9n commented Feb 24, 2013


  1. compile a schema with exactly 21 items whose last element is nillable and unbounded.
  <!-- must be exactly 21 elements -->
  <xs:complexType name="LongSequenceOfNillableTest">
      <xs:element name="string1" type="xs:string"/>
      <xs:element name="string2" type="xs:string"/>
      <xs:element name="string3" type="xs:string"/>
      <xs:element name="string4" type="xs:string"/>
      <xs:element name="string5" type="xs:string"/>
      <xs:element name="string6" type="xs:string"/>
      <xs:element name="string7" type="xs:string"/>
      <xs:element name="string8" type="xs:string"/>
      <xs:element name="string9" type="xs:string"/>
      <xs:element name="string10" type="xs:string"/>
      <xs:element name="string11" type="xs:string"/>
      <xs:element name="string12" type="xs:string"/>
      <xs:element name="string13" type="xs:string"/>
      <xs:element name="string14" type="xs:string"/>
      <xs:element name="string15" type="xs:string"/>
      <xs:element name="string16" type="xs:string"/>
      <xs:element name="string17" type="xs:string"/>
      <xs:element name="string18" type="xs:string"/>
      <xs:element name="string19" type="xs:string"/>
      <xs:element name="string20" type="xs:string"/>
      <xs:element name="person" type="gen:Person" nillable="true" minOccurs="0" maxOccurs="unbounded"/>


  1. generates vararg Persion*, and protocol won't compile.
case class LongSequenceOfNillableTestSequence3(person: general.Person*)


  1. generates vararg Option[Persion]*.

@eed3si9n eed3si9n closed this in 75ddc8e Feb 24, 2013

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