bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/32701] New: (VM)Double.parseDouble doesn't handle hexadec


From: gnu_andrew at member dot fsf dot org
Subject: [Bug classpath/32701] New: (VM)Double.parseDouble doesn't handle hexadecimal form
Date: 9 Jul 2007 14:36:28 -0000

JLS 3 / Java 1.5 introduces floating point literals in hexadecimal form. 
Classpath currently doesn't handle this, as all parsing is passed to strtod
from mprec.

http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10.2

http://java.sun.com/javase/6/docs/api/java/lang/Double.html#valueOf(java.lang.String)

This causes javac to fail in compiling the j2se libraries:

../../../../../src/share/classes/java/lang/Float.java:80: hexadecimal
floating-point literals are not supported on this VM
    public static final float MAX_VALUE = 0x1.fffffeP+127f; // 3.4028235e+38f


-- 
           Summary: (VM)Double.parseDouble doesn't handle hexadecimal form
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gnu_andrew at member dot fsf dot org


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]