You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MwDateFormatParserFactory::getMwDateFormatParser modifies
the provided ParserOptions instance (lines 60-62 there).
Both calls receive the same instance, so the options for
the first call are overwritten with the second call.
Passing a shallow copy avoids this. An alternative would be
to go through all parsers and make sure they create a copy
before they modify the object.
Unfortunately, some tests start to fail, mostly due to wrong
default calendar model for ancient dates. Instead of
determining it ourselves here, we use IsoTimestampParser to
decide the correct one.
Bug: T221097
Bug: T324392
Change-Id: I5389b639dbf04f6d3e4802c802d5f2029dadc5d5
0 commit comments