Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326339 - Throw exception if mapping a DataHandler when required dependencies are unavailable
Summary: Throw exception if mapping a DataHandler when required dependencies are unava...
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: 2010-09-27 14:41 EDT by Matt MacIvor CLA
Modified: 2022-06-09 10:26 EDT (History)
0 users

See Also:


Attachments
Proposed Fix (5.35 KB, patch)
2010-09-28 14:31 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 2010-09-27 14:41:40 EDT
In EclipseLink SDO, if both the javax.activation and javax.mail packages are not available on the classpath, an XMLBinaryDataMapping cannot be used. As a result, if a mapping is being generated for a DataHandler, but javax.mail is not on the classpath, a DirectMapping is generated, which is unable to properly process a DataHandler.

Since EclipseLink can't handle a DataHandler without a BinaryDataMapping, in the condition that a mapping for a DataHandler is being generated, but a dependency required for XMLBinaryDataMapping is missing, an exception should be thrown.
Comment 1 Matt MacIvor CLA 2010-09-28 14:31:33 EDT
Created attachment 179775 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2010-09-29 14:59:27 EDT
Attached patch checked into SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:15:56 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:26:56 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink