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
PowerMockAgent does not support java >=10 #979
Comments
Signed-off-by: Carsten Hammer <Carsten.Hammer@t-online.de>
…use Javaagent with latest java
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 |
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".
Consequently you get the following error:
The text was updated successfully, but these errors were encountered: