The problem has been introduced in one of the latest versions, jMockit 1.30 still worked.
With jMockit 1.39 loading the jMockit agent automatically via AgentLoader fails with an error:
"com.sun.tools.attach.AgentLoadException: Agent JAR not found or no Agent-Class attribute"
The problematic code is line 36 of class AgentLoader.java:
...getCodeSource().getLocation().getPath() -> returns an URL-encoded value (e.g. %20 for space)
You could easily change it to
to get a valid file name.
The text was updated successfully, but these errors were encountered: