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

chris.hegarty at oracle.com chris.hegarty at oracle.com
Wed Mar 29 12:31:36 UTC 2017


Changeset: 8903214706a2
Author:    dfuchs
Date:      2017-03-29 13:16 +0100
URL:       http://hg.openjdk.java.net/jdk9/sandbox/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-sandbox-changes mailing list