[seam-commits] Seam SVN: r7981 - trunk/src/main/org/jboss/seam.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Apr 18 14:54:25 EDT 2008
Author: norman.richards at jboss.com
Date: 2008-04-18 14:54:25 -0400 (Fri, 18 Apr 2008)
New Revision: 7981
Modified:
trunk/src/main/org/jboss/seam/Component.java
Log:
JBSEAM-2908
Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java 2008-04-18 18:54:01 UTC (rev 7980)
+++ trunk/src/main/org/jboss/seam/Component.java 2008-04-18 18:54:25 UTC (rev 7981)
@@ -2070,9 +2070,11 @@
}
} catch (Exception e) {
- //getScope().getContext().remove(name);
+ if (getScope()!=STATELESS) {
+ getScope().getContext().remove(name);
+ }
- throw new InstantiationException("Could not instantiate Seam component: " + name, e);
+ throw new InstantiationException("Could not instantiate Seam component: " + name, e);
}
return instance;
More information about the seam-commits
mailing list