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

Bug 348287

Summary: [Validation] @XmlAnyAttribute validation enhancements
Product: [WebTools] Dali JPA Tools Reporter: Paul Fullbright <paul.fullbright>
Component: JAXBAssignee: Paul Fullbright <paul.fullbright>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 3.0Keywords: plan
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Paul Fullbright CLA 2011-06-03 17:14:01 EDT
From the JAXB 2.2 spec (8.9.8.2)

- There must be only one property or field in a class that is annotated with @XmlAnyAttribute.
- The type of the property or the field must be java.util.Map.  [ Done ]
- The only other annotations that can be used on the property or field with @XmlAnyAttribute are: @XmlJavaTypeAdapter.

In addition, I don't believe the schema type *must* have a wildcard attribute (<xsd:anyAttribute ... >), but this bears further investigation.
Comment 1 Paul Fullbright CLA 2011-10-18 11:41:09 EDT
Added (In reply to comment #0)
> - There must be only one property or field in a class that is annotated with
> @XmlAnyAttribute.

Added support for validating this against inherited (and "included") attributes.

> In addition, I don't believe the schema type *must* have a wildcard attribute
> (<xsd:anyAttribute ... >), but this bears further investigation.

This seems to be incorrect.

Resolved fixed for 3.1 M3