This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Another compiler bug
- To: Java Discuss List <java at gcc dot gnu dot org>
- Subject: Another compiler bug
- From: Tom Tromey <tromey at redhat dot com>
- Date: 23 Aug 2001 22:59:18 -0600
- Reply-To: tromey at redhat dot com
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