commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r983513 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java
Date Mon, 09 Aug 2010 03:12:06 GMT
Author: sebb
Date: Mon Aug  9 03:12:06 2010
New Revision: 983513

URL: http://svn.apache.org/viewvc?rev=983513&view=rev
Log:
ConstructorUtils.invokeExactConstructor and ConstructorUtils.invokeConstructor require Object[]
arrays

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java?rev=983513&r1=983512&r2=983513&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java
Mon Aug  9 03:12:06 2010
@@ -90,9 +90,9 @@ public class ConstructorUtilsTest extend
 
     public void testInvokeConstructor() throws Exception {
         assertEquals("()", ConstructorUtils.invokeConstructor(TestBean.class,
-                ArrayUtils.EMPTY_CLASS_ARRAY).toString());
+                (Object[]) ArrayUtils.EMPTY_CLASS_ARRAY).toString());
         assertEquals("()", ConstructorUtils.invokeConstructor(TestBean.class,
-                (Class[]) null).toString());
+                (Object[]) null).toString());
         assertEquals("(String)", ConstructorUtils.invokeConstructor(
                 TestBean.class, "").toString());
         assertEquals("(Object)", ConstructorUtils.invokeConstructor(
@@ -111,9 +111,9 @@ public class ConstructorUtilsTest extend
 
     public void testInvokeExactConstructor() throws Exception {
         assertEquals("()", ConstructorUtils.invokeExactConstructor(
-                TestBean.class, ArrayUtils.EMPTY_CLASS_ARRAY).toString());
+                TestBean.class, (Object[]) ArrayUtils.EMPTY_CLASS_ARRAY).toString());
         assertEquals("()", ConstructorUtils.invokeExactConstructor(
-                TestBean.class, (Class[]) null).toString());
+                TestBean.class, (Object[]) null).toString());
         assertEquals("(String)", ConstructorUtils.invokeExactConstructor(
                 TestBean.class, "").toString());
         assertEquals("(Object)", ConstructorUtils.invokeExactConstructor(



Mime
View raw message