aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Curtis2014-07-01 16:56:02 (EDT)
committertware2014-07-04 11:32:15 (EDT)
commit5ec81b73576d80ddec7af43dc6cf4efe9e8d50fd (patch)
tree9631e17098171ad2e9245115538f8f27a6cd167c
parenta8ba336bc4d9d3f38ca09abb0f0286ba445e7fb0 (diff)
downloadeclipselink.runtime-5ec81b73576d80ddec7af43dc6cf4efe9e8d50fd.zip
eclipselink.runtime-5ec81b73576d80ddec7af43dc6cf4efe9e8d50fd.tar.gz
eclipselink.runtime-5ec81b73576d80ddec7af43dc6cf4efe9e8d50fd.tar.bz2
438663 - Fix PostConstruct injection ordering bug.
Signed-off-by: Rick Curtis <curtisr7@gmail.com>
-rw-r--r--foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/cdi/EntityListenerInjectionManagerImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/cdi/EntityListenerInjectionManagerImpl.java b/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/cdi/EntityListenerInjectionManagerImpl.java
index 0da3a19..5bf9769 100644
--- a/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/cdi/EntityListenerInjectionManagerImpl.java
+++ b/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/cdi/EntityListenerInjectionManagerImpl.java
@@ -10,6 +10,8 @@
* Contributors:
* tware - initial implemenation
* 06/24/2014 - 438105 - 2.6.0 - Rick Curtis - Fix bug in EntityListenerInjectionManagerImpl constructor.
+ * 07/01/2014-2.5.2 Rick Curtis
+ * - 438663: Fix injection ordering bug.
******************************************************************************/
package org.eclipse.persistence.internal.sessions.cdi;
@@ -58,9 +60,9 @@ public class EntityListenerInjectionManagerImpl implements EntityListenerInjecti
synchronized (injectionTargets) {
injectionTargets.put(entityListener, injectionTarget);
}
- injectionTarget.postConstruct(entityListener);
creationalContext = beanManager.<Object>createCreationalContext(null);
injectionTarget.inject(entityListener, creationalContext);
+ injectionTarget.postConstruct(entityListener);
return entityListener;
}