Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344752 - Problem using @XmlAnyAttribute in an inheritance hierarchy
Summary: Problem using @XmlAnyAttribute in an inheritance hierarchy
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 336099
Blocks:
  Show dependency tree
 
Reported: 2011-05-04 14:37 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:35 EDT (History)
1 user (show)

See Also:


Attachments
MOXy - Test Cases (571 bytes, patch)
2011-05-04 14:39 EDT, Blaise Doughan CLA
no flags Details | Diff
Proposed changes and test (2.06 KB, patch)
2011-05-11 14:22 EDT, Denise Smith CLA
no flags Details | Diff
Updated patch (1.56 KB, patch)
2011-05-11 14:25 EDT, Denise Smith CLA
no flags Details | Diff

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