| Summary: | EntityManagerFactory.getPersistenceUnitUtil() does not throw IllegalStateException when the entity manager factory has been closed | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Stephen DiMilla <stephen.dimilla> | ||||||
| Component: | Eclipselink | Assignee: | Tom Ware <tom.ware> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | blocker | ||||||||
| Priority: | P3 | CC: | lance.andersen, stephen.dimilla, tom.ware | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | Macintosh | ||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Updating target milestone. Created attachment 226572 [details]
proposed fix
Bugs 366407, 366427, 366464, 382537 fixed in same transaction Reviewed by Guy Pelletier Tests added to JPA 2.1 test suites, QueryTestSuite, EntityManagerTestSuite and EntityManagerFactoryTestSuite Tested with JPA LRG Created attachment 227338 [details]
additional patch
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Build Identifier: eclipselink-2.3.0.v20110604-r9504 Client code: EntityManagerFactory emf = em.getEntityManagerFactory(); emf.close(); try { System.out.println("call getPersistenceUnitUtil() after close"); emf.getPersistenceUnitUtil(); System.out.println("IllegalStateException not thrown"); } catch (IllegalStateException ise) { System.out.println("Received expected IllegalStateException"); } -------------- output: call getPersistenceUnitUtil() after close IllegalStateException not thrown Reproducible: Always