On Thu, 17 Oct 2024 05:54:24 GMT, Alan Bateman <al...@openjdk.org> wrote:

>> Ok, I'll also add an API note to `getClassContext()` to use `StackWalker` 
>> instead.
>
> Okay, it already has `@see StackWalker`. My guess is that anything extending 
> SM to call getClassContext is very old code. If that old code is compiled 
> with JDK 17+ then they should get a warning. In any case, we replaced the 
> implementation to use StackWalker so getClassContext will continue to work 
> until the SM class is removed.

Fixed in 
https://github.com/openjdk/jdk/pull/21498/commits/7ea65a6febd18ad8f8fa99cfbb8687e761558594

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21498#discussion_r1806946629

Reply via email to