openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1468315 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
Date Tue, 16 Apr 2013 06:55:44 GMT
Author: rmannibucau
Date: Tue Apr 16 06:55:44 2013
New Revision: 1468315

URL: http://svn.apache.org/r1468315
Log:
OWB-838 putting bean dependent instance first in dependentObjects list

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java?rev=1468315&r1=1468314&r2=1468315&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
Tue Apr 16 06:55:44 2013
@@ -158,7 +158,15 @@ public class CreationalContextImpl<T> im
                 {
                     dependentObjects = new ArrayList<DependentCreationalContext<?>>();
                 }
-                dependentObjects.add(dependentCreational);
+
+                if (dependent == contextual)
+                {
+                    dependentObjects.add(0, dependentCreational);
+                }
+                else
+                {
+                    dependentObjects.add(dependentCreational);
+                }
             }
         }
     }



Mime
View raw message