Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
PowerMockAgent does not support java >=10 #979
On java 11 you get an error in your junit test when the code in PowerMockAgent is used because of this:
`public final class PowerMockAgent
So computing the information about the version after jdk6 or before it does not take into account that for java 11 the javaSpecVersion variable is "11".
referenced this issue
Apr 21, 2019
Could it be that with Java 11 you need additionally "-Djdk.attach.allowAttachSelf=true" to make it run?
Caused by: java.io.IOException: Can not attach to current VM