getappmap / appmap-java

AppMap client agent for Java
Other
80 stars 14 forks source link

Don't locate Agent jar using ProtectionDomain.getCodeSource #259

Closed apotterri closed 6 months ago

apotterri commented 6 months ago

Instead of using ProtectionDomain.getCodeSource to find the agent jar, use the ClassLoader that loaded Agent.class. The CodeSource might be null (e.g. when testing the IntelliJ plugin), but the class loader will always be able to say where Agent.class was loaded from.

Also, avoid an NPE when a Proxy method returns void.

Fixes #257 . Fixes #258 .

appland-release commented 6 months ago

:tada: This PR is included in version 1.26.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: