leesf commented on a change in pull request #8083: [FLINK-12050][Tests] BlockingShutdownTest fails on Java 9 URL: https://github.com/apache/flink/pull/8083#discussion_r272576789
########## File path: flink-runtime/src/test/java/org/apache/flink/runtime/testutils/TestJvmProcess.java ########## @@ -260,6 +260,10 @@ public long getProcessId() { Field pidField = clazz.getDeclaredField("pid"); pidField.setAccessible(true); return pidField.getLong(process); + } else if (clazz.getName().equals("java.lang.ProcessImpl")) { + Method pid = clazz.getDeclaredMethod("pid"); + pid.setAccessible(true); Review comment: @zentol , yes, if not setAccessible(true), the exception(`cannot access a member of class java.lang.ProcessImpl (in module java.base) with modifiers "public"`) will be thrown. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services