This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Another compiler bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]