> 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.
Ioi Lam has updated the pull request incrementally with one additional commit since the last revision: Added assert in heapInspection.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/27037/files - new: https://git.openjdk.org/jdk/pull/27037/files/54236678..e1bac273 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=27037&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27037&range=00-01 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/27037.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27037/head:pull/27037 PR: https://git.openjdk.org/jdk/pull/27037
