Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366219 - Predicate not marshalled for direct collection to XML attribute
Summary: Predicate not marshalled for direct collection to XML attribute
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 11:19 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:26 EDT (History)
1 user (show)

See Also:


Attachments
MOXy - Test Cases (6.36 KB, patch)
2011-12-09 11:22 EST, Blaise Doughan CLA
no flags Details | Diff
Core - Fix (977 bytes, patch)
2011-12-09 11:22 EST, Blaise Doughan CLA
no flags Details | Diff
Core - Fix (2.3.3) (953 bytes, patch)
2011-12-16 16:28 EST, Blaise Doughan 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-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