RFR: 8376052: Use AttachOperationFailedException rather than AttachNotSupportedException in findTargetProcessTmpDirectory() [v3]

Yasumasa Suenaga ysuenaga at openjdk.org
Sun Jan 25 11:02:32 UTC 2026


> [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.

Yasumasa Suenaga has updated the pull request incrementally with two additional commits since the last revision:

 - Update comments in findTargetProcessTmpDirectory()
 - Throw AssertionError when URISyntaxException happens at findTargetProcessTmpDirectory()

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29355/files
  - new: https://git.openjdk.org/jdk/pull/29355/files/c9051cde..b6dbde9f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29355&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29355&range=01-02

  Stats: 26 lines in 1 file changed: 11 ins; 2 del; 13 mod
  Patch: https://git.openjdk.org/jdk/pull/29355.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29355/head:pull/29355

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


More information about the serviceability-dev mailing list