openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r966751 - /openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbDefinitionUtility.java
Date Thu, 22 Jul 2010 17:04:40 GMT
Author: covener
Date: Thu Jul 22 17:04:40 2010
New Revision: 966751

URL: http://svn.apache.org/viewvc?rev=966751&view=rev
Log:
[OWB-418] fix r966748 to use ClassUtil.newInstance()


Modified:
    openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbDefinitionUtility.java

Modified: openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbDefinitionUtility.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbDefinitionUtility.java?rev=966751&r1=966750&r2=966751&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbDefinitionUtility.java
(original)
+++ openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbDefinitionUtility.java
Thu Jul 22 17:04:40 2010
@@ -28,6 +28,7 @@ import org.apache.webbeans.ejb.common.co
 import org.apache.webbeans.ejb.common.proxy.EjbBeanProxyHandler;
 import org.apache.webbeans.exception.WebBeansException;
 import org.apache.webbeans.proxy.JavassistProxyFactory;
+import org.apache.webbeans.util.ClassUtil;
 
 /**
  * @version $Rev: 917060 $ $Date: 2010-02-28 00:14:47 +0200 (Sun, 28 Feb 2010) $
@@ -62,7 +63,7 @@ public final class EjbDefinitionUtility
                 clazz = JavassistProxyFactory.getInstance().defineEjbBeanProxyClass(bean,
factory);
             }
             
-            proxyInstance = (T) clazz.newInstance();
+            proxyInstance = (T) ClassUtil.newInstance(clazz);
             EjbBeanProxyHandler handler = new EjbBeanProxyHandler(bean, creationalContext);
             ((ProxyObject)proxyInstance).setHandler(handler);
             



Mime
View raw message