Return-Path: Delivered-To: apmail-openwebbeans-commits-archive@www.apache.org Received: (qmail 23775 invoked from network); 11 Jul 2010 11:08:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Jul 2010 11:08:07 -0000 Received: (qmail 35267 invoked by uid 500); 11 Jul 2010 11:08:07 -0000 Delivered-To: apmail-openwebbeans-commits-archive@openwebbeans.apache.org Received: (qmail 35228 invoked by uid 500); 11 Jul 2010 11:08:06 -0000 Mailing-List: contact commits-help@openwebbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwebbeans.apache.org Delivered-To: mailing list commits@openwebbeans.apache.org Received: (qmail 35219 invoked by uid 99); 11 Jul 2010 11:08:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jul 2010 11:08:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jul 2010 11:08:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BD4F52388A02; Sun, 11 Jul 2010 11:07:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r963047 - /openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbDefinitionUtility.java Date: Sun, 11 Jul 2010 11:07:09 -0000 To: commits@openwebbeans.apache.org From: gerdogdu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100711110709.BD4F52388A02@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gerdogdu Date: Sun Jul 11 11:07:09 2010 New Revision: 963047 URL: http://svn.apache.org/viewvc?rev=963047&view=rev Log: Improvement, no functional change 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=963047&r1=963046&r2=963047&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 Sun Jul 11 11:07:09 2010 @@ -27,6 +27,8 @@ 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; +import org.apache.webbeans.util.SecurityUtil; /** * @version $Rev: 917060 $ $Date: 2010-02-28 00:14:47 +0200 (Sun, 28 Feb 2010) $ @@ -55,7 +57,7 @@ public final class EjbDefinitionUtility Class clazz = JavassistProxyFactory.getInstance().getEjbBeanProxyClass(bean); if(clazz != null) { - return (T)clazz.newInstance(); + return (T)ClassUtil.newInstance(clazz); } //Proxy factory instance