deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject deltaspike git commit: [DELTASPIKE-771] BeanManagerProvider#getBeanManagerInfo(ClassLoader) wipes out info for parent CL
Date Fri, 07 Nov 2014 19:37:53 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 2041f2a81 -> c27d288e1


[DELTASPIKE-771] BeanManagerProvider#getBeanManagerInfo(ClassLoader) wipes out info for parent
CL


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/c27d288e
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/c27d288e
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/c27d288e

Branch: refs/heads/master
Commit: c27d288e175b98accf8cf25526c95b4f0f9f43f3
Parents: 2041f2a
Author: mbenson <mbenson@apache.org>
Authored: Fri Nov 7 13:37:21 2014 -0600
Committer: mbenson <mbenson@apache.org>
Committed: Fri Nov 7 13:37:21 2014 -0600

----------------------------------------------------------------------
 .../apache/deltaspike/core/api/provider/BeanManagerProvider.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/c27d288e/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/provider/BeanManagerProvider.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/provider/BeanManagerProvider.java
b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/provider/BeanManagerProvider.java
index 02a3972..a5d63e0 100644
--- a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/provider/BeanManagerProvider.java
+++ b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/provider/BeanManagerProvider.java
@@ -292,7 +292,7 @@ public class BeanManagerProvider implements Extension
                 {
                     bmi = new BeanManagerInfo();
                     bmpSingleton.bmInfos.put(cl, bmi);
-                    if (cl.getParent() != null)
+                    if (cl.getParent() != null && !bmpSingleton.bmInfos.containsKey(cl.getParent()))
                     {
                         bmpSingleton.bmInfos.put(cl.getParent(), bmi);
                     }


Mime
View raw message