From: Scott Russell Date: Mon, 1 Jul 2013 19:00:14 +0000 (+0000) Subject: ICU-9968 Return value of SimpleDateFormat subparse not correctly reflecting error... X-Git-Tag: milestone-59-0-1~2799 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f232698394948317f97207694dba495ffaf6b8e;p=icu ICU-9968 Return value of SimpleDateFormat subparse not correctly reflecting error at start pos 0 - fix failing ERA test X-SVN-Rev: 33872 --- diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java b/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java index 6f1e0efa35c..a6a86d63b74 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java @@ -2792,7 +2792,7 @@ public class SimpleDateFormat extends DateFormat { // check return position, if it equals -start, then matchString error // special case the return code so we don't necessarily fail out until we // verify no year information also - if (ps == -start) + if (ps == ~start) ps = ISOSpecialEra; return ps;