RFR: 8373867: Improve robustness of Attach API for finding tmp directory [v5]

Alan Bateman alanb at openjdk.org
Tue Jan 20 10:49:36 UTC 2026


On Tue, 20 Jan 2026 00:01:33 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:

> IMO we might use IOE in (2) because the problem is filesystem reachability, but (4) should not be IOE.

AttachNotSupportedException was intended to be thrown when attempting to attach to a Java virtual machine for which a compatible AttachProvider does not exist. I don't think any of the cases are in that bucket so should be okay to throw IOException for all these cases.

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

PR Comment: https://git.openjdk.org/jdk/pull/28867#issuecomment-3772217076


More information about the serviceability-dev mailing list