User account creation filtered due to spam.

Bug 31770 - BigDecimal string constructor incorrectly accepts multiple sign characters in exponent
Summary: BigDecimal string constructor incorrectly accepts multiple sign characters in...
Status: UNCONFIRMED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-01 06:33 UTC by Jeroen Frijters
Modified: 2007-05-01 06:33 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Frijters 2007-05-01 06:33:09 UTC
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"));
  }
}