Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351857 - JAXB Schema Generation trims URL from SchemaLocation
Summary: JAXB Schema Generation trims URL from SchemaLocation
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: Matt MacIvor CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-12 11:07 EDT by Matt MacIvor CLA
Modified: 2022-06-09 10:03 EDT (History)
0 users

See Also:


Attachments
proposed fix and test case (10.74 KB, patch)
2011-07-12 16:20 EDT, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt MacIvor CLA 2011-07-12 11:07:34 EDT
JAXB SchemaGenerator does some processing to make the paths for imported schemas relative. This processing should only be applied to schemas that EcliseLink actually generates. In the case of a package-info with a schemaLocation (indicating that JAXB shouldn't generate that schema, but instead just use the provided location), the schemaLocation should be used exactly as it is in the package-info and not relativized.
Comment 1 Matt MacIvor CLA 2011-07-12 16:20:05 EDT
Created attachment 199531 [details]
proposed fix and test case
Comment 2 Matt MacIvor CLA 2011-07-13 14:45:21 EDT
fix and tests checked into 2.3.1 and trunk.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:03:47 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink