[jdk8u-dev] RFR: 8046883: com/sun/jdi/ProcessAttachTest.sh gets "java.io.IOException: Invalid process identifier" on windows

Kazuhisa Takakuri ktakakuri at openjdk.org
Mon May 13 09:32:31 UTC 2024


Hi all,

This is a backport of JDK-8046883: com/sun/jdi/ProcessAttachTest.sh gets "java.io.IOException: Invalid process identifier" on windows.
The original patch does not apply cleanly. Process.pid() method was introduced in JDK9, so I used the results of the jps command instead.

Testing: jdk/test/com/sun/jdi/ProcessAttachTest.java on Windows x86_64

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

Commit messages:
 - Add comment
 - Use jps
 - Backport 0139a3b9e7d3cbbe2c4efe1653856c2cd2769040

Changes: https://git.openjdk.org/jdk8u-dev/pull/498/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=498&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8046883
  Stats: 538 lines in 5 files changed: 152 ins; 386 del; 0 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/498.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/498/head:pull/498

PR: https://git.openjdk.org/jdk8u-dev/pull/498


More information about the jdk8u-dev mailing list