IllegalStateException should be thrown for some methods when called on a closed EntityManager

Description

IllegalStateException is not thrown when EntityManager#getMetamodel, #getCriteriaBuilder, #getEntityManagerFactory, or #createNamedQuery is called on closed EntityManager per JPA spec.

Environment

None

Status

Assignee

Gail Badner

Reporter

Gail Badner

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure