Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363370

Summary: Schema validation/content assist for JAXB types associated with anonymous schema types
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JAXBAssignee: Neil Hauge <neil.hauge>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge, paul.fullbright
Version: 3.1   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
example schema none

Description Karen Butzke CLA 2011-11-09 14:19:33 EST
Created attachment 206729 [details]
example schema

Create a jaxb project and generate classes from the attached example.xsd. In the Bar class, which extends Foo, you do not get code assist for the @XmlAttribute(name="baz") on the baz attribute.

There are no validation errors for this case
Comment 1 Paul Fullbright CLA 2011-11-09 14:24:04 EST
The key bit here is that such a type will be generated with the following (approximate) annotations.

@XmlType(name="")
public class Foo 


There is no root element associated with the class, and instead any global elements are associated with @XmlElementDecls in the object factory class.
Comment 2 Neil Hauge CLA 2013-04-30 12:36:01 EDT
Deferred to 3.4.