Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311868 - WDF test TestRefresh needs to be adapted to clarified semantics of refresh operation according to § 3.2.5
Summary: WDF test TestRefresh needs to be adapted to clarified semantics of refresh op...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://wiki.eclipse.org/Talk:EclipseL...
Whiteboard: test
Keywords:
Depends on:
Blocks: 309681
  Show dependency tree
 
Reported: 2010-05-06 08:49 EDT by Adrian Goerler CLA
Modified: 2022-06-09 10:36 EDT (History)
1 user (show)

See Also:


Attachments
patch for method testRefreshDeleted (14.22 KB, patch)
2010-05-06 09:40 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-05-06 08:49:28 EDT
The JPA 2 specification clarifies the semantics of the refresh operation:

§3.2.5: 

The semantics of the refresh operation, applied to an entity X are as follows:
[...]
If X is a new, detached, or removed entity, the IllegalArgumentException is thrown.

So far, the test TestRefresh assumed that refresh should work on removed entities as well. It has to be adjusted to the clarified spec.
Comment 1 Adrian Goerler CLA 2010-05-06 09:40:02 EDT
Created attachment 167304 [details]
patch for method testRefreshDeleted

Adjust the test to conform with the JPA 2.0 spec.
Comment 2 Adrian Goerler CLA 2010-05-06 09:42:54 EDT
checked in at # 7172
reviewed by Andreas
tested on MySQL
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:15:17 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:36:04 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink