Skip to content

Commit

Permalink
Merge pull request #71 from leikingo/master
Browse files Browse the repository at this point in the history
added test for IssueGH70 (complexType, interface and xjb customizatio…
  • Loading branch information
highsource committed Jun 29, 2016
2 parents b920678 + 583f471 commit 9485a57
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.jvnet.jaxb2_commons.tests.issues;

public interface IssueGH70Interface {
}
3 changes: 3 additions & 0 deletions tests/issues/src/main/resources/binding.xjb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
<jaxb:class/>
<inheritance:implements>java.lang.Cloneable</inheritance:implements>
</jaxb:bindings>
<jaxb:bindings node="//xsd:complexType[@name='issueGH70Type']">
<inheritance:implements>org.jvnet.jaxb2_commons.tests.issues.IssueGH70Interface</inheritance:implements>
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>
9 changes: 9 additions & 0 deletions tests/issues/src/main/resources/schema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,13 @@
<xs:attribute name="z" type="xs:string" default="z"/>
</xs:complexType>

<xs:complexType name="issueGH70Type">
<xs:complexContent mixed="true">
<xs:extension base="xs:anyType">
<xs:attribute name="id" type="xs:anyURI" use="required"/>
<xs:anyAttribute processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

</xs:schema>

0 comments on commit 9485a57

Please sign in to comment.