On Mon, 30 Nov 2026 09:21:22 GMT, Markus Grönlund <[email protected]> wrote:

>> David Holmes has updated the pull request incrementally with two additional 
>> commits since the last revision:
>> 
>>  - Fix again
>>  - Delete mis-merged changes
>
> src/hotspot/share/classfile/defaultMethods.hpp line 47:
> 
>> 45:  public:
>> 46:   MirandaMethodRef(Method* m)
>> 47:     : _holder(m->method_holder()), _method_id(m->method_idnum()) { }
> 
> I'd make it explicit to use _orig_method_idnum here.
> 
> In this particular case, method_idnum() works, but that is a consequence of 
> dealing with interface methods (public and non-static).
> 
> The fact that the JVM preserves _orig_method_id_num is central for this kind 
> of lookup.

I will need to dig deeper into this to understand what these two different id's 
represent.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/34016#discussion_r4739199203

Reply via email to