aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsergiotudela <sromero@itrsgroup.com>2016-01-21 15:24:59 +0100
committersergiotudela <sromero@itrsgroup.com>2016-01-21 15:24:59 +0100
commit9c96129c8f5c12f4364ffb09d45a9e36c0e650ed (patch)
tree7b1a921a55a087d25aca6fe8f7b60fc9eb1741e2
parent087eff1305da0e6e512ca7f3d61bde6023a1b209 (diff)
downloadKamon-9c96129c8f5c12f4364ffb09d45a9e36c0e650ed.tar.gz
Kamon-9c96129c8f5c12f4364ffb09d45a9e36c0e650ed.tar.bz2
Kamon-9c96129c8f5c12f4364ffb09d45a9e36c0e650ed.zip
Fixes https://github.com/kamon-io/Kamon/issues/307
- Clean comments.
-rw-r--r--kamon-autoweave/src/main/scala/kamon/autoweave/loader/AgentLoader.scala5
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