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

Bug 344752

Summary: Problem using @XmlAnyAttribute in an inheritance hierarchy
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P4 CC: denise.mahar
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 336099    
Bug Blocks:    
Attachments:
Description Flags
MOXy - Test Cases
none
Proposed changes and test
none
Updated patch none

Description Blaise Doughan CLA 2011-05-04 14:37:31 EDT
When @XmlAnyAttribute is used on a super class the following exceptions is thrown when bootstrapping the JAXBContext:

junit.framework.AssertionFailedError: Exception in constructor: testXMLToObjectFromInputStream (javax.xml.bind.JAXBException: 
Exception Description: Only one property with XmlAnyAttribute allowed on class org.eclipse.persistence.testing.jaxb.xmlvalue.none.ValidParent
 - with linked exception:
[Exception [EclipseLink-50005] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.JAXBException
Exception Description: Only one property with XmlAnyAttribute allowed on class org.eclipse.persistence.testing.jaxb.xmlvalue.none.ValidParent]
a:197)
Comment 1 Blaise Doughan CLA 2011-05-04 14:39:58 EDT
Created attachment 194752 [details]
MOXy - Test Cases
Comment 2 Denise Smith CLA 2011-05-11 14:22:49 EDT
Created attachment 195404 [details]
Proposed changes and test
Comment 3 Denise Smith CLA 2011-05-11 14:25:51 EDT
Created attachment 195407 [details]
Updated patch
Comment 4 Denise Smith CLA 2011-05-12 08:45:01 EDT
Checked in fix to annotationsprocessor and updated an existing test case.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:35:39 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink