Skip to content

Commit 583f471

Browse files
author
Ingo Leiking
committed
added test for IssueGH70 (complexType, interface and xjb customization) regarding interface inheritance on mixed types.
1 parent b920678 commit 583f471

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package org.jvnet.jaxb2_commons.tests.issues;
2+
3+
public interface IssueGH70Interface {
4+
}

tests/issues/src/main/resources/binding.xjb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
<jaxb:class/>
1212
<inheritance:implements>java.lang.Cloneable</inheritance:implements>
1313
</jaxb:bindings>
14+
<jaxb:bindings node="//xsd:complexType[@name='issueGH70Type']">
15+
<inheritance:implements>org.jvnet.jaxb2_commons.tests.issues.IssueGH70Interface</inheritance:implements>
16+
</jaxb:bindings>
1417
</jaxb:bindings>
1518
</jaxb:bindings>

tests/issues/src/main/resources/schema.xsd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,4 +299,13 @@
299299
<xs:attribute name="z" type="xs:string" default="z"/>
300300
</xs:complexType>
301301

302+
<xs:complexType name="issueGH70Type">
303+
<xs:complexContent mixed="true">
304+
<xs:extension base="xs:anyType">
305+
<xs:attribute name="id" type="xs:anyURI" use="required"/>
306+
<xs:anyAttribute processContents="lax"/>
307+
</xs:extension>
308+
</xs:complexContent>
309+
</xs:complexType>
310+
302311
</xs:schema>

0 commit comments

Comments
 (0)