JDK-7092701 : Allow parsing underscore while converting to number
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2011-09-20
  • Updated: 2012-09-06
  • Resolved: 2011-09-20
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
Converting string to integer got NumberFormatException when put underscore ( _ ) between numbers in String ("1000_100").
Allowing underscore in binary literal should also allow this parsing.

JUSTIFICATION :
Allowing underscore in binary literal should also allow underscore while parsing string to integral data type.