Browse Source

vararg calls

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1345954 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 13 years ago
parent
commit
aa43e37a02
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java

+ 2
- 3
src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java View File

@@ -101,8 +101,7 @@ public class TypeAdapterTest extends BuildFileTest {

public Method getExecuteMethod(Class proxyClass) {
try {
Method execMethod = proxyClass.getMethod(
execMethodName, null);
Method execMethod = proxyClass.getMethod(execMethodName);
if (!Void.TYPE.equals(execMethod.getReturnType())) {
String message =
"return type of " + execMethodName + "() should be "
@@ -137,7 +136,7 @@ public class TypeAdapterTest extends BuildFileTest {
getProject().setProjectReference(proxy);
Method executeMethod = getExecuteMethod(proxy.getClass());
try {
executeMethod.invoke(proxy, null);
executeMethod.invoke(proxy);
} catch (java.lang.reflect.InvocationTargetException ie) {
log("Error in " + proxy.getClass(), Project.MSG_ERR);
Throwable t = ie.getTargetException();


Loading…
Cancel
Save