On Tue, 2 Sep 2025 01:31:59 GMT, Ioi Lam <ik...@openjdk.org> wrote: > By adding an `InstanceKlass* InstanceKlass::super()` method to shadow `Klass* > Klass:super()`, this PR makes it possible to simplify the following code > > > InstanceKlass* ik; > InstanceKlass* s; > s = InstanceKlass::cast(ik->super()); // before JDK-8366024 > s = ik->java_super(); // after JDK-8366024 > > > to > > > s = k->super(); > > > So you no longer need to do casting or need to understand what `java_super()` > is.
This pull request has now been integrated. Changeset: f4d73d2a Author: Ioi Lam <ik...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/f4d73d2a3dbeccfd04d49c0cfd690086edd0544f Stats: 93 lines in 28 files changed: 9 ins; 3 del; 81 mod 8366584: Add an InstanceKlass::super() method that returns InstanceKlass* Reviewed-by: dholmes, coleenp ------------- PR: https://git.openjdk.org/jdk/pull/27037