Bug ID: JDK-4106143 About polymorphism: changing the return type...
throw new ParseException("Format.parseObject(String) failed", 0); return resultWe would get a simpler interface and better error messages when the method throws a ParseException. Actually, the parseObject method has no way to produce better error messages than "Parse failed".