<i18n dev> RFR: 8316557: Make fields final in 'sun.util' package

Alan Bateman alanb at openjdk.org
Mon Sep 25 10:07:13 UTC 2023


On Mon, 25 Sep 2023 10:04:13 GMT, Chen Liang <liach at openjdk.org> wrote:

>>> UTF8 decoder does not perform any internal state mutation during decoding; 
>> 
>> Are you sure? I think `CharsetDecoder::decode` will modify the `status` field.
>
> right, it does have a `state` field.

CharsetDecoder is specified to be not safe for use by multiple concurrent threads, would be too fragile to assume behavior of a specific implementation.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/15736#discussion_r1335672904


More information about the i18n-dev mailing list