Issue Details (XML | Word | Printable)

Key: JDO-380
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michael Bouschen
Reporter: Ilan Kirsh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Missing pm.close() in GetPersistenceManagerFactory

Created: 16/May/06 10:12 AM   Updated: 29/Jul/06 10:40 PM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 final
Fix Version/s: JDO 2 maintenance release 1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-380.patch 2006-07-29 10:14 PM Michael Bouschen 1 kB

Resolution Date: 29/Jul/06 10:40 PM


 Description  « Hide
I suspect that pm.close() is missing at the end of method testGetPersistenceManagerFactory().

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Bouschen added a comment - 19/May/06 07:41 PM
I agree, the pm should be closed at the end of the test.

I propose to change GetPersistenceManagerFactory in package tck.api.persistencemanager and use method getPM to retrieve a pm. It stores the pm in an instance variable and the tearDown method automatically closes the pm at the end of the test.

Michael Bouschen added a comment - 29/Jul/06 10:14 PM
The attached patch calls getPM to retrieve the PM and closes the PM.

Craig Russell added a comment - 29/Jul/06 10:37 PM
The patch looks good.

Michael Bouschen added a comment - 29/Jul/06 10:40 PM
Checked in the patch (revision 426846).