<i18n dev> RFR: 8273491: java.util.spi.LocaleServiceProvider spec contains statement that is too strict [v2]
Lance Andersen
lancea at openjdk.java.net
Sat Sep 11 15:02:52 UTC 2021
On Sat, 11 Sep 2021 13:59:25 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> That sounds good to me, suggesting doing it at launch while discouraging the use of setProperty.
>
> Hi Lance,
>
>> * Are there any scenarios where invoking setProperty will not override the command line setting ?
>
> Yes. For example, if a logger is installed, it formats the log date/time which causes initialization of locale-related classes before the app's main() method invocation, resulting setProperty() having no effect.
>
>> * Did you consider an `@ImplNote` for your clarification given the behavior "might" be different in other implementations (I am not sure myself) and is implementation defined?
>
> As in the above example, the behavior changes regardless of the implementation of the runtime. The clarification is mainly for the API consumer, rather than platform implementors.
>
> Hope this answers your questions.
Hi Naoto,
Thank you for the clarification. Yes it makes sense.
Best
Lance
-------------
PR: https://git.openjdk.java.net/jdk/pull/5457
More information about the i18n-dev
mailing list