Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326126 - WDF TestCascadeFlush.testSimpleCascadeToDetached1 and TestCascadePersist.testSimpleCascadeDetached
Summary: WDF TestCascadeFlush.testSimpleCascadeToDetached1 and TestCascadePersist.test...
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: test simple_fix
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-24 04:54 EDT by Adrian Goerler CLA
Modified: 2022-06-09 10:35 EDT (History)
2 users (show)

See Also:


Attachments
proposed patch for 2.2.0 (4.57 KB, patch)
2010-09-24 04:57 EDT, Adrian Goerler CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Goerler CLA 2010-09-24 04:54:28 EDT
The tests provoke an exception that causes a rollback and atempt to assert a particular state on the database after the exception but before the rollback. As the persistence context is in state rollback only, on assumption with respect to the state on the database should be made.

Needs to be fixed in trunk (2.2.0) and 2.1.2.
Comment 1 Adrian Goerler CLA 2010-09-24 04:57:47 EDT
Created attachment 179503 [details]
proposed patch for 2.2.0
Comment 2 Adrian Goerler CLA 2010-09-24 11:16:35 EDT
Comment on attachment 179503 [details]
proposed patch for 2.2.0

Patch valid for 2.1.1 as well
Comment 3 Adrian Goerler CLA 2010-09-24 11:20:55 EDT
Tested on MySQL on 2.2.0 and 2.1.2.

Checked in a simple_fix:
2.2.0: 8238
2.1.2: 8239
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:35:45 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink