On Sat, 11 Sep 2021 13:59:25 GMT, Naoto Sato <na...@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

Reply via email to