bugs.java.com
Bug ID: JDK-4489146 BigInteger(String, int) does not fail on multiple...
If the String passed to the BigInteger(String, int) constructor begins with "-- " (two minus signs), or "-0-" then a BigInteger object is created even though such a String is badly formatted. Since BigDecimal(String) depends on the above BigInteger constructor...