diff options
author | sergiotudela <sromero@itrsgroup.com> | 2016-01-21 15:24:59 +0100 |
---|---|---|
committer | sergiotudela <sromero@itrsgroup.com> | 2016-01-21 15:24:59 +0100 |
commit | f665dc3213094385dc89f43d14da07aae07a95a6 (patch) | |
tree | 8ffc10c5b2ebadd13ccdaee9adb7d6f2d468d932 | |
parent | babab89ecf04e3ff782c4b9062d5fe0b315ef506 (diff) | |
download | Kamon-f665dc3213094385dc89f43d14da07aae07a95a6.tar.gz Kamon-f665dc3213094385dc89f43d14da07aae07a95a6.tar.bz2 Kamon-f665dc3213094385dc89f43d14da07aae07a95a6.zip |
Fixes https://github.com/kamon-io/Kamon/issues/307
- Clean comments.
-rw-r--r-- | kamon-autoweave/src/main/scala/kamon/autoweave/loader/AgentLoader.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kamon-autoweave/src/main/scala/kamon/autoweave/loader/AgentLoader.scala b/kamon-autoweave/src/main/scala/kamon/autoweave/loader/AgentLoader.scala index 0c547d6f..7908514e 100644 --- a/kamon-autoweave/src/main/scala/kamon/autoweave/loader/AgentLoader.scala +++ b/kamon-autoweave/src/main/scala/kamon/autoweave/loader/AgentLoader.scala @@ -154,9 +154,8 @@ object AgentLoader { } /** - * Why this dirty method? For some reason `BsdVirtualMachine` for MacOS doesn't return the public constructors when - * the `getConstructor` is invoked via reflection, however `getDeclaredConstructors` works properly (this constructor - * should marked as public then). Probably this thing could be a bug in the JDK, pending to raise an issue there. + * `BsdVirtualMachine` has the constructor as `protected` (no modifier defined), so `AgentLoader` can not instance it, + * for that reason we need to set accessible that constructor via reflection. * * @param vmClass * @return |