[jboss-cvs] JBossAS SVN: r94014 - projects/jboss-deployers/trunk/deployers-structure-spi/src/main/java/org/jboss/deployers/structure/spi/helpers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 24 22:02:08 EDT 2009


Author: jason.greene at jboss.com
Date: 2009-09-24 22:02:07 -0400 (Thu, 24 Sep 2009)
New Revision: 94014

Modified:
   projects/jboss-deployers/trunk/deployers-structure-spi/src/main/java/org/jboss/deployers/structure/spi/helpers/AbstractStructureBuilder.java
Log:
Merge JBDEPLOY-215 from 94013


Modified: projects/jboss-deployers/trunk/deployers-structure-spi/src/main/java/org/jboss/deployers/structure/spi/helpers/AbstractStructureBuilder.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-structure-spi/src/main/java/org/jboss/deployers/structure/spi/helpers/AbstractStructureBuilder.java	2009-09-25 01:57:42 UTC (rev 94013)
+++ projects/jboss-deployers/trunk/deployers-structure-spi/src/main/java/org/jboss/deployers/structure/spi/helpers/AbstractStructureBuilder.java	2009-09-25 02:02:07 UTC (rev 94014)
@@ -135,10 +135,11 @@
                if (childContext == null)
                   throw new IllegalStateException("Child deployment context is null");
 
-               context.addChild(childContext);
                childContext.setParent(context);
-
                applyContextInfo(childContext, child);
+               
+               // Child must be added after context info is applied for correct sorting
+               context.addChild(childContext);
 
                Attachments attachments = child.getPredeterminedManagedObjects(); 
                if (attachments != null)




More information about the jboss-cvs-commits mailing list