]> granicus.if.org Git - icu/commitdiff
ICU-9968 Return value of SimpleDateFormat subparse not correctly reflecting error...
authorScott Russell <DTownSMR@gmail.com>
Mon, 1 Jul 2013 19:00:14 +0000 (19:00 +0000)
committerScott Russell <DTownSMR@gmail.com>
Mon, 1 Jul 2013 19:00:14 +0000 (19:00 +0000)
X-SVN-Rev: 33872

icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java

index 6f1e0efa35c2a44c39f5f5b4073e02abd7d42858..a6a86d63b74c27f0d87ce1947627bf127df6fece 100644 (file)
@@ -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;