RFR 8170984: java.util.logging might force the initialization of ResourceBundle class too early.

Daniel Fuchs daniel.fuchs at oracle.com
Fri Dec 9 15:11:17 UTC 2016


On 09/12/16 15:05, Alan Bateman wrote:
> On 09/12/2016 14:09, Daniel Fuchs wrote:
>
>> Hi,
>>
>> Please find below a fix for:
>>
>> issue:
>> https://bugs.openjdk.java.net/browse/JDK-8170984
>> 8170984: java.util.logging might force the initialization
>>          of ResourceBundle class too early.
>>
>> webrev:
>> http://cr.openjdk.java.net/~dfuchs/webrev_8170984/webrev.00/
>>
>> The issue here is that j.u.l.Level and j.u.l.Logging
>> statically initialize a variable used to provide
>> internal access to ResourceBundle at class loading.
> This looks okay to me, I think the real issue underlying this bug is a
> custom system class loader that is doing logging in its initialization.
> Anyone doing a custom system class loader needs to keep their
> initialization to an absolute minimum to avoid recursive initialization
> issues.

Thanks Alan!

-- daniel

>
> -Alan



More information about the core-libs-dev mailing list