bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/31770] New: BigDecimal string constructor incorrectly acc


From: jeroen at frijters dot net
Subject: [Bug classpath/31770] New: BigDecimal string constructor incorrectly accepts multiple sign characters in exponent
Date: 1 May 2007 05:33:10 -0000

The following code (adapted from an Apache commons-lang test) runs without
throwing NumberFormatException, but according to the spec it should throw a
NumberFormatException.

public class test
{
  public static void main(String[] args)
  {
    System.out.println(new java.math.BigDecimal("-123E+-212"));
  }
}


-- 
           Summary: BigDecimal string constructor incorrectly accepts
                    multiple sign characters in exponent
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jeroen at frijters dot net


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





reply via email to

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