Hi Daniel, For my own understanding, would it be possible and yet still secure to walk up the call stack to substitute a caller in the case of method being defined with the 'native' keyword assuming it is in the same class? For instance, if you look at the stacktrace in JDK-8145302 there is a native method calling 'getLogger' with a signature defined in class called MWMCR. Then are 2 frames from the MWMCR class and 2 frames from what appears to be anonymous inner classes of MWMCR.
If all we care about is the calling class it seems like there are enough frames to choose from it just that they are not between 'getLogger' and the native method. Jason ________________________________________ From: core-libs-dev <core-libs-dev-boun...@openjdk.java.net> on behalf of Daniel Fuchs <daniel.fu...@oracle.com> Sent: Wednesday, March 22, 2017 1:29 PM To: Mandy Chung Cc: core-libs-dev Subject: Re: [9] RFR: 8177136: Caller sensitive method System.getLogger should specify what happens if there is no caller on the stack. On 22/03/2017 18:20, Mandy Chung wrote: > >> On Mar 22, 2017, at 10:34 AM, Daniel Fuchs <daniel.fu...@oracle.com> wrote: >> >> http://cr.openjdk.java.net/~dfuchs/webrev_8177136/webrev.04 > > Looks okay. > > "an {@code IllegalCallerException} is thrown.β > - It might read better if you drop βanβ and add a comma instead > > No need to have a new webrev. Thanks Mandy, I updated the webrev in place. I will now proceed with all the paperwork to get that fix in 9 ;-) http://cr.openjdk.java.net/~dfuchs/webrev_8177136/webrev.04 -- daniel > > Thanks > Mandy >