Changes for JIRA OPENJPA-116 issue.

Added a test to ensure that the EntityManager was still open before executing the getDelegate() code.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501445 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin W. Sutter 2007-01-30 16:19:59 +00:00
parent e4bf0444a4
commit 17c6580e4c
1 changed files with 1109 additions and 1108 deletions

View File

@ -853,6 +853,7 @@ public class EntityManagerImpl
}
public Object getDelegate() {
_broker.assertOpen();
return this;
}
@ -1104,5 +1105,5 @@ public class EntityManagerImpl
if (!(other instanceof EntityManagerImpl))
return false;
return _broker.equals(((EntityManagerImpl) other)._broker);
}
}
}