RFR: 8366024: Remove unnecessary InstanceKlass::cast() [v2]

Ioi Lam iklam at openjdk.org
Mon Sep 1 04:06:49 UTC 2025


On Mon, 1 Sep 2025 00:56:43 GMT, David Holmes <dholmes at openjdk.org> wrote:

> This seems fine though I will also comment that `java_super` seems completely mis-named in relation to `super` as there is nothing more `Java` about it. The implementation of `java_super` for arrays is quite odd - I'm not sure when we don't care about the actual superclass and want to go straight to object.

As we discussed offline, I will try to add a new `InstanceKlass* InstanceKlass::super()` method. Then in most case people can just call `ik->super()` and it will do "the right thing".

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

PR Comment: https://git.openjdk.org/jdk/pull/26908#issuecomment-3240793456


More information about the hotspot-dev mailing list