javaee / jaxb-v2

Other
211 stars 101 forks source link

Found problem with <xjc:treatRestrictionLikeNewType /> in JAXB:XJC #855

Open glassfishrobot opened 13 years ago

glassfishrobot commented 13 years ago

Found problem with in JAXB:XJC. The problem occurs when trying to generate binding classes upon XSD's with jaxb xjc.

My xsd has a type hierarchy with restriction from CodeType, through ItemType, to ItemBaseType. The latter defines the id. When using , CodeType is losing id. Is this a known bug? Is there a solution for this?

The xsd cannot be changed since it is a third party artifact. The is used in my custom binding in order to generate friendly mapping classes.

.................. ...................... ............................................................................. The examples above come from this xsd file: /opensdmx-domain-21-jaxb-bugreport/src/main/resources/SDMXStructureCodelist.xsd. I have attached a zip file with a Maven project. The tests fail to compile because of the missing attributes. #### Environment Java, Windows #### Affected Versions [2.2.4u1]
glassfishrobot commented 13 years ago

Reported by erikvaningen

glassfishrobot commented 13 years ago

File: opensdmx-domain-21-jaxb-bugreport.zip Attached By: erikvaningen

glassfishrobot commented 13 years ago

Was assigned to snajper

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB-855