Integrated: 8376052: Use AttachOperationFailedException rather than AttachNotSupportedException in findTargetProcessTmpDirectory()

Yasumasa Suenaga ysuenaga at openjdk.org
Fri Feb 6 06:46:42 UTC 2026


On Thu, 22 Jan 2026 02:48:59 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:

> [JDK-8373867](https://bugs.openjdk.org/browse/JDK-8373867) improves the logic to find tmp directory for using in attaching procedure. It might throw `IOException` or `AttachNotSupportedException` when it failed.
> 
> In review thread #28867, we reached conclusion we should use `AttachOperationFailedException` rather than `AttachNotSupportedException` because `AttachNotSupportedException` would be thrown when a compatible AttachProvider does not exist.

This pull request has now been integrated.

Changeset: 57241545
Author:    Yasumasa Suenaga <ysuenaga at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/57241545c63469a9301bd191c49336582a29e306
Stats:     64 lines in 3 files changed: 27 ins; 17 del; 20 mod

8376052: Use AttachOperationFailedException rather than AttachNotSupportedException in findTargetProcessTmpDirectory()

Reviewed-by: alanb, amenkov

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

PR: https://git.openjdk.org/jdk/pull/29355


More information about the serviceability-dev mailing list