RFR: 8201179: Regression due loading java.nio.charset.StandardCharsets during bootstrap

Claes Redestad claes.redestad at oracle.com
Mon Apr 9 20:44:34 UTC 2018



On 2018-04-09 22:28, Xueming Shen wrote:
>>
>> I also think we should avoid depending on j.n.c.StandardCharsets 
>> within java.base as to not accidentally execute more code in 
>> initPhase1 than absolutely necessary, so I've changed uses in core 
>> packages (java.lang, java.util, java.zip...) to use the internal 
>> alternative.
>
> is this really necessary? it appears to introduces in an unnecessary 
> dependency on the location of
> the internal implementation of .UTF_8.
>

not strictly necessary, no. Same for adding INSTANCE to UTF_16* (which I 
did mainly for consistency). I'll revert these changes.

/Claes


More information about the nio-dev mailing list