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

Daniel Fuchs daniel.fuchs at oracle.com
Thu Feb 6 17:04:04 UTC 2014


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/

-- daniel

>
> It may be that the bug can only be duplicated in this way; if so, please
> add the new test in needstest/TEST.group.  It would make it simpler to
> move the tests with AWT dependency to a separate directory.
>
> Mandy




More information about the core-libs-dev mailing list