- Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed as not planned
Labels
Description
Jetty has a class named TypeUtil
, see here. In this class, they use MethodHandles.Lookup
to get MethodHandle
s to getCodeSourceLocation
, etc.
When running a test which uses the TypeUtil
with agent attached, I can see getCodeSourceLocation
etc, but the signature is wrong:
{ "condition":{"typeReachable":"org.eclipse.jetty.util.TypeUtil"}, "name":"org.eclipse.jetty.util.TypeUtil", "methods":[ {"name":"getClassLoaderLocation","parameterTypes":[] }, {"name":"getCodeSourceLocation","parameterTypes":[] }, {"name":"getModuleLocation","parameterTypes":[] }, {"name":"getSystemClassLoaderLocation","parameterTypes":[] } ] }
The signatures are URI
as return type and Class<?>
as only argument, e.g. public static URI getCodeSourceLocation(Class<?> clazz)
Version info:
openjdk version "17.0.4" 2022-07-19 OpenJDK Runtime Environment GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06) OpenJDK 64-Bit Server VM GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06, mixed mode, sharing)