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

Afshin Zafari duke at openjdk.org
Tue May 9 09:33:24 UTC 2023


On Tue, 9 May 2023 09:12:51 GMT, Afshin Zafari <duke at openjdk.org> wrote:

> This PR is continuation of https://github.com/openjdk/jdk/pull/13420 which was far behind the master.

Brief reminder from original PR:
- `Finalizable` interface has `default` methods for `cleanup` and `registerCleanup`.
- `FinalizableObject` implements that interface.
- All the classes implementing the `Finalizable` interface just call the default methods. No need to override.
- When needed specific cleanup actions, the `cleanup()` method is overridden.

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

PR Comment: https://git.openjdk.org/jdk/pull/13884#issuecomment-1539778518


More information about the serviceability-dev mailing list