Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336134 - ProtectedSession sets ValueHolder inside another ValueHolder
Summary: ProtectedSession sets ValueHolder inside another ValueHolder
Status: CLOSED INVALID
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: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-02 14:39 EST by Andrei Ilitchev CLA
Modified: 2022-06-09 10:10 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Ilitchev CLA 2011-02-02 14:39:52 EST
The code is question is:
        if (this.descriptor.isProtectedIsolation()&& !this.isCacheable && !targetSession.isProtectedSession()){
            setRealAttributeValueInObject(target, this.indirectionPolicy.buildIndirectObject(new ValueHolder(null)));
            return;
        }

It could be found in mergeChangesIntoObject and mergeIntoObject of several database mappings.

Should be:
        if (this.descriptor.isProtectedIsolation()&& !this.isCacheable && !targetSession.isProtectedSession()){
            setAttributeValueInObject(target, this.indirectionPolicy.buildIndirectObject(new ValueHolder(null)));
            return;
        }
Comment 1 Peter Krogh CLA 2011-06-20 14:24:58 EDT
bug scrubbing
Comment 2 Tom Ware CLA 2011-08-23 13:47:40 EDT
Appears to be fixed already
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:10:58 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink