Thursday, August 14, 2014

Integer.parseInt difference between JDK6 and JDK8

Today QA reported a bug which is actually a NumberFormatException.forInputString exception for "+2"
But when I tested it, it works perfect and when I checked the document, it stated that - and + is supported for Integer.parseInt.
After further investigation, it shows its JDK difference. My test uses JDK8 while the QA test environment is JDK6.
JDK6 does not support plus sign

No comments:

Post a Comment