Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363370 - Schema validation/content assist for JAXB types associated with anonymous schema types
Summary: Schema validation/content assist for JAXB types associated with anonymous sch...
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 14:19 EST by Karen Butzke CLA
Modified: 2014-02-06 14:12 EST (History)
2 users (show)

See Also:


Attachments
example schema (729 bytes, application/octet-stream)
2011-11-09 14:19 EST, Karen Butzke CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.