| Summary: | JAXBException logged when @XmlAnyAttribute is on property of sub-type of Map | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Paul Fullbright <paul.fullbright> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | martin.grebac, rick.barkhouse, vikram.jeet.bhatia | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 209023 [details]
Proposed patch
Reviewed by rbarkhouse - patch is good, JUnit and JAXB TCK all pass. Fixed in main trunk with r10649. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
ex: public class SuperFoo { @XmlAnyAttribute public HashMap others; } When creating JAXB context for this root class, the following exception is logged. javax.xml.bind.JAXBException: Exception Description: XmlAnyAttribute is invalid on property others. Must be used with a property of type Map. I tried also with SortedMap and TreeMap. The RI allows this.