Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: 1.0.3
-
Fix Version/s: None
-
Component/s: XML
-
Labels:None
-
Number of attachments :
Description
When a type extends another type but restricts the content, the generated classes will not compile since the return type of the base class is not the same as for the subclass.
Attached you will find a slice of UBL 1.0 that demonstrates the problem by running Ant. The compiler output is
...\se\exder\external\ubl\sdt\UBLAmountType.java:80: getAmountCurrencyID() in se.exder.external.ubl.sdt.UBLAmountType cannot override getAmountCurrencyID() in se.exder.external.ubl.udt.AmountType; attempting to use incompatible return type
found : se.exder.external.ubl.codelist.types.CurrencyCodeContentType
required: java.lang.String
public se.exder.external.ubl.codelist.types.CurrencyCodeContentType getAmountCurrencyID()
This was no problem in version 0.9.9.1 but prevents one from using Castor 1.x for UBL (or other complex/core component) schemas.