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
Thu Feb 6 15:49:51 UTC 2014


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.

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