Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354988 - Default namespace not set correctly on XPathFragment for descriptors with no @XmlRootElement
Summary: Default namespace not set correctly on XPathFragment for descriptors with no ...
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: 356396
  Show dependency tree
 
Reported: 2011-08-17 13:52 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:18 EDT (History)
0 users

See Also:


Attachments
MOXy - Fix (1.85 KB, patch)
2011-08-17 13:53 EDT, Blaise Doughan CLA
no flags Details | Diff
MOXy - Test Cases (43.40 KB, patch)
2011-08-17 16:31 EDT, Blaise Doughan CLA
no flags Details | Diff
MOXy - Test Cases (6.49 KB, patch)
2011-08-17 16:36 EDT, Blaise Doughan CLA
no flags Details | Diff
MOXy - Test Cases (22.87 KB, patch)
2011-08-18 14:16 EDT, Blaise Doughan CLA
no flags Details | Diff
MOXy - Fix (2.59 KB, patch)
2011-08-18 14:16 EDT, 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-08-17 13:52:19 EDT
For descriptors without an @XmlRootElement XPathFragments that should be in the default namespace are being configured without a namespace.
Comment 1 Blaise Doughan CLA 2011-08-17 13:53:28 EDT
Created attachment 201660 [details]
MOXy - Fix
Comment 2 Blaise Doughan CLA 2011-08-17 16:31:22 EDT
Created attachment 201671 [details]
MOXy - Test Cases
Comment 3 Blaise Doughan CLA 2011-08-17 16:36:55 EDT
Created attachment 201672 [details]
MOXy - Test Cases
Comment 4 Blaise Doughan CLA 2011-08-18 14:16:01 EDT
Created attachment 201735 [details]
MOXy - Test Cases
Comment 5 Blaise Doughan CLA 2011-08-18 14:16:21 EDT
Created attachment 201736 [details]
MOXy - Fix
Comment 6 Blaise Doughan CLA 2011-08-18 15:57:42 EDT
Fix checked into trunk at rev:  9918

Code reviewed by:  Denise Smith

Fix Description:
- Now set default namespace regardless if there is an XmlRootElement
- Check the @XmlElementDecls to see if any set the namespace to "", in that case set flag to not use default namespace.
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:18:52 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink