Another compiler bug

Tom Tromey tromey@redhat.com
Thu Aug 23 21:24:00 GMT 2001


While compiling Mauve I ran into this:

./gnu/testlet/java/lang/Math/min.java: In class `gnu.testlet.java.lang.Math.min':
./gnu/testlet/java/lang/Math/min.java: In method `gnu.testlet.java.lang.Math.min.test(gnu.testlet.TestHarness)':
./gnu/testlet/java/lang/Math/min.java:89: Can't find method `toString(D)' in type `java.lang.Float'.
         harness.check (Float.toString (Math.min (Float.NaN, 2.0f)), "NaN");


This code looks fine to me.  And if I compile a simple test of this by
hand, it works fine.  So there is some compiler bug here, but the
obvious reduced test case doesn't show it :-(

Tom



More information about the Java mailing list