You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following piece of code fails for image generation with
com.oracle.svm.core.util.UserError$UserException: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Detailed message:
Trace:
at parsing java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1264)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findConstructor(Class, MethodType):
at java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1260)
public class HelloWorld {
static {
getEmptyConstructor(HelloWorld.class);
}
public static void main(String... args) {
getEmptyConstructor(HelloWorld.class);
}
static void getEmptyConstructor(Class<?> c) {
try {
MethodHandles.lookup().findConstructor(c, MethodType.methodType(void.class));
} catch (ReflectiveOperationException e) {
throw new Error(e);
}
}
}
Pretty must all reflective methods on MethodsHandles.Lookup fails in a similar way
The text was updated successfully, but these errors were encountered:
public class HelloWorld {
static final Constructor<?> CON = HelloWorld.class.getDeclaredConstructors()[0];
public static void main(String... args) throws IllegalAccessException {
MethodHandles.lookup().unreflectConstructor(CON);
}
}
Uh oh!
There was an error while loading. Please reload this page.
The following piece of code fails for image generation with
Pretty must all reflective methods on MethodsHandles.Lookup fails in a similar way
The text was updated successfully, but these errors were encountered: