<i18n dev> Review request: JDK-8081794 ParsePosition getErrorIndex returns 0 for TimeZone parsing problem
Naveen Kumar
naveen.ah.kumar at oracle.com
Fri Sep 25 11:08:14 UTC 2015
Hi,
Please review the following fix for jdk9.
Bug:https://bugs.openjdk.java.net/browse/JDK-8081794
Webrev:http://cr.openjdk.java.net/~psadhukhan/naveen/webrev/
Issue:
a malformed TimeZone will prevent parsing the date, but not
set the correct errorIndex in ParsePosition
Fix:
remove incorrect update of "pos.index = -i" from subParse
function in SimpleDateFormat.java, which (pos.index) is later used to
update error index as "origPos.errorIndex = pos.index;"
regards
Naveen Kumar
More information about the i18n-dev
mailing list