Class LookupExposer
java.lang.Object
io.opentelemetry.javaagent.tooling.instrumentation.indy.LookupExposer
This class is injected into every
InstrumentationModuleClassLoader so that the bootstrap
can use a MethodHandles.Lookup with a lookup class from within the InstrumentationModuleClassLoader, instead of calling MethodHandles.lookup() which uses
the caller class as the lookup class.
This circumvents a nasty JVM bug that's described here. The error is reproduced in
InstrumentationModuleClassLoaderTest
-
Method Summary
-
Method Details
-
getLookup
-