Skip to content

native-image agent records wrong signature in Jettys TypeUtil #5204

@mhalbritter

Description

@mhalbritter

Jetty has a class named TypeUtil, see here. In this class, they use MethodHandles.Lookup to get MethodHandles 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) 

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions