hg: jdk9/dev/jdk: 8177136: Caller sensitive method System::getLogger should specify what happens if there is no caller on the stack.

daniel.fuchs at oracle.com daniel.fuchs at oracle.com
Wed Mar 29 12:17:17 UTC 2017


Changeset: 8903214706a2
Author:    dfuchs
Date:      2017-03-29 13:16 +0100
URL:       http://hg.openjdk.java.net/jdk9/dev/jdk/rev/8903214706a2

8177136: Caller sensitive method System::getLogger should specify what happens if there is no caller on the stack.
Summary: IllegalCallerException (instead of undocumented NPE) is thrown if there is no caller on the stack. The specification is clarified in this respect.
Reviewed-by: alanb, mchung, dholmes, bchristi

! src/java.base/share/classes/java/lang/System.java



More information about the jdk9-dev-changes mailing list