RFR - 8029876: Add a test to verify that Logger.getLogger & LogManager.getLogManager don't throw NPE when System.out == null

Mandy Chung mandy.chung at oracle.com
Mon Feb 10 22:38:26 UTC 2014


On 2/6/2014 9:04 AM, Daniel Fuchs wrote:
> On 2/6/14 4:49 PM, Mandy Chung wrote:
>> Hi Daniel,
>>
>> On 2/6/2014 7:29 AM, Daniel Fuchs wrote:
>>> https://bugs.openjdk.java.net/browse/JDK-8029876
>>> 8029876: Add a test to verify that Logger.getLogger
>>>          & LogManager.getLogManager don't throw NPE
>>>          when System.out == null
>>>
>>> webrev (trivial copy of the test to jdk9-dev):
>>> http://cr.openjdk.java.net/~dfuchs/webrev_8029876/webrev.00/
>>
>> Do you think this test can use the JavaAWTAccessStub as in other tests
>> so that it doesn't depend on SunToolkit? TestMainAppContext.java also
>> depends on SunTookit.
>
> Ah right! I remember we already spoke about that for the original test.
> Here is a new version that doesn't depend on AWT.
>
> http://cr.openjdk.java.net/~dfuchs/webrev_8029876/webrev.01/

Looks good.

Mandy



More information about the core-libs-dev mailing list