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

Bug 366219

Summary: Predicate not marshalled for direct collection to XML attribute
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: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
MOXy - Test Cases
none
Core - Fix
none
Core - Fix (2.3.3) none

Description Blaise Doughan CLA 2011-12-09 11:19:42 EST
The predicate attribute is not being marshalled for the following use case:

    @XmlPath("link[@rel='phone-number`]/@href")
    public List<String> getPhoneNumber() {
        return phoneNumber;
    }
Comment 1 Blaise Doughan CLA 2011-12-09 11:22:19 EST
Created attachment 208176 [details]
MOXy - Test Cases
Comment 2 Blaise Doughan CLA 2011-12-09 11:22:36 EST
Created attachment 208178 [details]
Core - Fix
Comment 3 Blaise Doughan CLA 2011-12-09 15:21:17 EST
Fix checked into trunk at rev:  10535

Code reviewed by:  Denise Smith

Fix Details:
Added the necessary call to predicateAttribute in XMLCompositeCollectionMappingNodeValue when the collection is to an XML attribute.
Comment 4 Blaise Doughan CLA 2011-12-16 15:55:38 EST
Backport this fix to 2.3.3
Comment 5 Blaise Doughan CLA 2011-12-16 16:28:23 EST
Created attachment 208510 [details]
Core - Fix (2.3.3)
Comment 6 Blaise Doughan CLA 2011-12-16 16:30:45 EST
Fix checked into 2.3.3 at rev:  10593
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:26:05 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink