Skip to:
From a colleague:
I think this method violates the requirement for equals() implementations to be symmetric because it contains this snippet:
If I see it right, think this means that for two NFRuleSet instances A and B with:
A.style != NumberFormat.PLURALCURRENCYSTYLE
B.style == NumberFormat.PLURALCURRENCYSTYLE
A.posPrefixPattern not equal to B.posPrefixPattern
all other fields equalthen A.equals(B) is true but B.equals(A) is false.
Check C++ as well.
Yep, this is fixed with a follow-up in #11626 (r41431)
LGTM
close this one?
TODOs are being fixed in follow-up to #11626.
I ported the Java test to C++, but the equality does not work like in Java. I commented out the failing lines with `TODO(shane)`.
I found and fixed a bug in setCurrencyPluralInfo().
Needs a test in ICU4C.
From a colleague:
I think this method violates the requirement for equals() implementations to be symmetric because it contains this snippet:
If I see it right, think this means that for two NFRuleSet instances A and B with:
A.style != NumberFormat.PLURALCURRENCYSTYLE
B.style == NumberFormat.PLURALCURRENCYSTYLE
A.posPrefixPattern not equal to B.posPrefixPattern
all other fields equal
then A.equals(B) is true but B.equals(A) is false.
Check C++ as well.