On 21 February 2011 20:03, sebb <[email protected]> wrote: > When testing using Java 1.5.0, I am seeing the following output: > > Running org.apache.commons.math.util.FastMathStrictComparisonTest > double atan2(1.1102230246251565E-16, -1.7976931348623157E308) expected > 400921fb54442d18 actual c00921fb54442d18 entries [9, 6] > double atan2(2.2250738585072014E-308, -1.7976931348623157E308) > expected 400921fb54442d18 actual c00921fb54442d18 entries [11, 6] > double atan2(4.9E-324, -1.7976931348623157E308) expected > 400921fb54442d18 actual c00921fb54442d18 entries [13, 6] > > The result has the wrong sign. > > What is odd is that this does not happen with Java 1.6.0, nor does it > happen if I try running the test on its own. > Nor does it happen if use Ant to run the tests. > > Nor does it seem to happen in the Continuum builds, which are using Java 1.5 > > But it happens reliably if I run "mvn test" under Java 1.5.0. > > Very odd. >
I've discovered that running geometry.RotationTest before FastMathStrictComparisonTest triggers the failure. But only in Java 1.5.0. Further, the test that triggers the failure is testAngles(), and the specific line that causes the error is: double[] angles = r.getAngles(CardanOrders[i]); // line 311 This calls various FastMath methods. No idea yet why the extra calls to the FastMath methods should cause a subsequent call to fail. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
