Classes on the stack trace (was: getElementClass/StackTraceElement, was: @CallerSensitive public API, was: sun.reflect.Reflection.getCallerClass)
Joseph Darcy
joe.darcy at oracle.com
Tue Jul 30 04:59:07 UTC 2013
On 7/29/2013 9:31 PM, Alan Bateman wrote:
> On 29/07/2013 19:17, David M. Lloyd wrote:
>>
>> Your phrasing makes me think I missed something: is the
>> Reflection.getCallerClass() method being removed due to some
>> technical issue that it can only be somehow emulated as a
>> workaround? Or is it just a general cleanup effort?
>>
> The sun.reflect.Reflection.getCallerClass(int) method was removed as
> part of JEP 176 [1].
>
> -Alan.
>
> [1] http://openjdk.java.net/jeps/176
>
And as a sun.* method, this was officially outside of the exported
interface of the JDK and not something that should be expected to work
if called from outside of the JDK:
http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html
-Joe
More information about the core-libs-dev
mailing list