Should only test against public methods.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1062302 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-01-23 00:53:08 +00:00
parent ebe4b3e92b
commit fcc41aa360

View File

@ -1071,7 +1071,11 @@ public class FastMathTest {
String name = mathMethod.getName();
try {
fastMethod = FastMath.class.getDeclaredMethod(name, (Class[]) params);
if (Modifier.isPublic(fastMethod.getModifiers())) {
comparer.compareSpecials(mathMethod, fastMethod, params);
} else {
System.out.println("Cannot find public FastMath method corresponding to: "+mathMethod);
}
} catch (NoSuchMethodException e) {
System.out.println("Cannot find FastMath method corresponding to: "+mathMethod);
}