tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andygumbre...@apache.org
Subject svn commit: r1511679 - /tomee/tomee/trunk/server/openejb-client/src/main/java/org/apache/openejb/client/proxy/Jdk13ProxyFactory.java
Date Thu, 08 Aug 2013 10:35:07 GMT
Author: andygumbrecht
Date: Thu Aug  8 10:35:07 2013
New Revision: 1511679

URL: http://svn.apache.org/r1511679
Log:
Parameter is an array

Modified:
    tomee/tomee/trunk/server/openejb-client/src/main/java/org/apache/openejb/client/proxy/Jdk13ProxyFactory.java

Modified: tomee/tomee/trunk/server/openejb-client/src/main/java/org/apache/openejb/client/proxy/Jdk13ProxyFactory.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/server/openejb-client/src/main/java/org/apache/openejb/client/proxy/Jdk13ProxyFactory.java?rev=1511679&r1=1511678&r2=1511679&view=diff
==============================================================================
--- tomee/tomee/trunk/server/openejb-client/src/main/java/org/apache/openejb/client/proxy/Jdk13ProxyFactory.java
(original)
+++ tomee/tomee/trunk/server/openejb-client/src/main/java/org/apache/openejb/client/proxy/Jdk13ProxyFactory.java
Thu Aug  8 10:35:07 2013
@@ -105,7 +105,8 @@ public class Jdk13ProxyFactory implement
         try {
 
             final Constructor cons = proxyClass.getConstructor(constructorParams);
-            return cons.newInstance(new Jdk13InvocationHandler());
+            //noinspection RedundantArrayCreation
+            return cons.newInstance(new Object[]{new Jdk13InvocationHandler()});
 
         } catch (NoSuchMethodException e) {
             throw new InternalError(e.toString());



Mime
View raw message