Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326091 - Variable 1-1 valueFromObject does not return class type value for type field
Summary: Variable 1-1 valueFromObject does not return class type value for type field
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Minsky CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-23 15:12 EDT by David Minsky CLA
Modified: 2022-06-09 10:05 EDT (History)
0 users

See Also:


Attachments
Proposed changes to EL foundation testing (5.77 KB, patch)
2010-09-23 15:34 EDT, David Minsky CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Minsky CLA 2010-09-23 15:12:01 EDT
With a Variable 1-1 mapping, calling valueFromObject does not return the class type value for a passed type field. Instead, null will be returned.

03988833
Comment 1 David Minsky CLA 2010-09-23 15:34:46 EDT
Created attachment 179478 [details]
Proposed changes to EL foundation testing

This patch resolves the issue in VariableOneToOneMapping valueFromObject() by returning the correct cached type field value for the class of the mapping's referenced object.
Comment 2 David Minsky CLA 2010-09-23 15:35:11 EDT
Reviewed: James
Comment 3 David Minsky CLA 2010-09-23 17:10:51 EDT
Fixed in trunk r8236
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:05:41 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink