RFR: 8305083: Remove finalize() from test/hotspot/jtreg/vmTestbase/nsk/share/ and /jpda that are used in serviceability/dcmd/framework tests [v2]

Coleen Phillimore coleenp at openjdk.org
Tue May 2 15:44:20 UTC 2023


On Tue, 2 May 2023 07:32:18 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8305083: Remove finalize() from test/hotspot/jtreg/vmTestbase/nsk/share/ and /jpda that are used in serviceability/dcmd/framework tests
>
> test/hotspot/jtreg/vmTestbase/nsk/share/Finalizable.java line 48:
> 
>> 46:      * It is implemented in FinalizableObject.
>> 47:      */
>> 48:     public void registerCleanup();
> 
> Can you not implement this as a default method?

It seems much better to force implementors to provide this method.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13420#discussion_r1182724791


More information about the hotspot-runtime-dev mailing list