-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b126
-
generic
-
generic
-
Verified
MessageFormat.toPattern produces a pattern string which isn't correctly quoted. Therefore, applying the produced pattern doesn't create the same state of the MessageFormat instance from which the pattern has been produced.
For example, pattern "'{{'" produces formatted string "{{". Its toPattern() produces "'{''{'". applyPattern("'{''{'") produces formatted string "{'{".
toPattern() also has an assumption about implementation classes of DateFormat and NumberFormat, which is not valid because of the SPI support.
For example, pattern "'{{'" produces formatted string "{{". Its toPattern() produces "'{''{'". applyPattern("'{''{'") produces formatted string "{'{".
toPattern() also has an assumption about implementation classes of DateFormat and NumberFormat, which is not valid because of the SPI support.
- relates to
-
JDK-6983207 API: MessageFormat quote handling discrepancy
-
- Closed
-