EntityManager.close() should throw an ISE if called on already closed EntityManager

Description

Calling EntityManager.close() on an already closed entity manager, should throw an IllegalStateException. From JPA2.2 spec:

Environment

None

Assignee

Steve Ebersole

Reporter

Scott Marlow

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure