scottmarlow/hibernate-core — comment on commit 305a8ab21f829cb7d21f98f4093efe82264b41b5
File: hibernate-entitymanager/src/main/java/org/hibernate/ejb/Ejb3Configuration.java line 912
By scottmarlow:

I started out doing that but didn't like leaking the 'this' to other threads before the constructor finished. I was also seeing weirdness that wasn't related to the leaking of the 'this'.

Since we don't ever access the emf from other threads (at least not early enough to see a partially created emf), I can change back to calling the private method at end of ctor.