Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Java 12/13 #17

Open
theangrydev opened this issue Apr 15, 2019 · 4 comments
Open

Add support for Java 12/13 #17

theangrydev opened this issue Apr 15, 2019 · 4 comments

Comments

@theangrydev
Copy link

On OpenJDK 12/13 I see this:

Exception in thread "main" java.lang.IllegalStateException: Could not detect PID form Process[pid=26, exitValue="not exited"]
	at org.zeroturnaround.process.PidUtil.doGetPid(PidUtil.java:117)
	at org.zeroturnaround.process.PidUtil.getPid(PidUtil.java:97)
Caused by: java.lang.NoSuchFieldException: handle
	at java.base/java.lang.Class.getDeclaredField(Class.java:2417)
	at org.zeroturnaround.process.PidUtil.getHandle(PidUtil.java:150)
	at org.zeroturnaround.process.PidUtil.getPidFromWin32Process(PidUtil.java:146)
	at org.zeroturnaround.process.PidUtil.doGetPid(PidUtil.java:113)
	... 4 more
@nemecec
Copy link
Collaborator

nemecec commented Apr 15, 2019

Added JDK 12 to Travis in PR #19. The failure is also visible there.

@nemecec
Copy link
Collaborator

nemecec commented Apr 16, 2019

Issue is fixed in master with commit c3a927f. @theangrydev, can you try and see if it works for you also?

@theangrydev
Copy link
Author

@nemecec seems to work for me

@mdaloia
Copy link

mdaloia commented Jun 17, 2022

It seems that this issue could be closed.
As mentioned above it was fixed with c3a927f which is included in the version 1.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants