[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Gavin King
gavin.king at jboss.com
Mon Nov 13 13:18:44 EST 2006
User: gavin
Date: 06/11/13 13:18:44
Modified: src/main/org/jboss/seam Component.java
Log:
more robust (fix a forum bug, probably)
Revision Changes Path
1.206 +3 -2 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.205
retrieving revision 1.206
diff -u -b -r1.205 -r1.206
--- Component.java 13 Nov 2006 17:33:02 -0000 1.205
+++ Component.java 13 Nov 2006 18:18:44 -0000 1.206
@@ -120,7 +120,7 @@
*
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
* @author Gavin King
- * @version $Revision: 1.205 $
+ * @version $Revision: 1.206 $
*/
@Scope(ScopeType.APPLICATION)
@SuppressWarnings("deprecation")
@@ -996,6 +996,7 @@
protected Object instantiateSessionBean() throws Exception, NamingException
{
+ Component old = SeamInterceptor.COMPONENT.get();
SeamInterceptor.COMPONENT.set(this);
try
{
@@ -1004,7 +1005,7 @@
}
finally
{
- SeamInterceptor.COMPONENT.set(null);
+ SeamInterceptor.COMPONENT.set(old);
}
}
More information about the jboss-cvs-commits
mailing list