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

Activity

Show:
Steve Ebersole
November 30, 2017, 3:19 AM

Or was this something you wanted me to do?

Steve Ebersole
November 30, 2017, 3:19 AM

Be sure to use the corresponding compliance setting: hibernate.jpa.compliance.closed. The "infrastructure" is already in place, you can just check:

Fixed

Assignee

Gail Badner

Reporter

Gail Badner

Fix versions