Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348287 - [Validation] @XmlAnyAttribute validation enhancements
Summary: [Validation] @XmlAnyAttribute validation enhancements
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Paul Fullbright CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2011-06-03 17:14 EDT by Paul Fullbright CLA
Modified: 2011-10-18 11:41 EDT (History)
1 user (show)

See Also:


Attachments

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