> On 21 Dec 2017, at 12:33, David Holmes <david.hol...@oracle.com> wrote:
> ...
>> The test is about identifying StackWalker as the replacement
>> supported API for getCallerClass, which is continues to do.
> 
> Won't pretend I actually understand that, but as long as the test works 
> reliably then okay.

Jdeps prints helpful messages when it encounters usage of certain
common internal APIs, e.g. "I see your are using
sun.reflect.Reflection.getCallerClass(int). This is an internal API which
has been replaced by java.lang.StackWalker. You may wanna update
your code to use that API instead”.

For example,
 
http://hg.openjdk.java.net/jdk/jdk/file/tip/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources/jdkinternals.properties#l16

-Chris.

Reply via email to