RFR: 8323243: JNI invocation of an abstract instance method corrupts the stack

David Holmes dholmes at openjdk.org
Wed Jan 10 21:50:25 UTC 2024


On Wed, 10 Jan 2024 12:46:45 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> See JBS for details.
>> 
>> TL;DR - if an instance method is abstract then JNI front-end should throw AbstractMethodError.
>> 
>> Testing:
>>   - new regression test
>>   -  tiers 1-3 (sanity)
>> 
>> Thanks.
>
> test/hotspot/jtreg/runtime/jni/abstractMethod/AbstractMethod.jasm line 43:
> 
>> 41:     public abstract Method "abstractM":"()V";
>> 42: 
>> 43: }
> 
> some newline missing.

Fixed

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17337#discussion_r1448023665


More information about the hotspot-runtime-dev mailing list