[Bug libgcj/15719] New: GIJ Interpeter: Problem with NaN / infinity comparisons

mckinlay at redhat dot com gcc-bugzilla@gcc.gnu.org
Sat May 29 01:06:00 GMT 2004


The following test case produces the wrong result when compiled to bytecode and
run with the gij interpreter.

public class Test
{
  public static void main(String[] args)
  {
    System.out.println(blah(Double.NaN));    
  }
  
  static boolean blah(double a)
  {
    return (a < Double.POSITIVE_INFINITY);
  }
}

Expected output:
false

Actual output:
true

-- 
           Summary: GIJ Interpeter: Problem with NaN / infinity comparisons
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mckinlay at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15719



More information about the Java-prs mailing list