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
Annotation classes have Methods with default values. It is useful to access the default value reflectively, but it blows up in a native image, even if you declare the annotation type in reflect-confg.json.
Here's an example error:
Exception in thread "main" com.oracle.svm.core.jdk.UnsupportedFeatureError: Unsupported method java.lang.Class.getConstantPool() is reachable: The declaring class of this element has been substituted, but this element is not present in the substitution class
at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:102)
at java.lang.Class.getConstantPool(DynamicHub.java)
at java.lang.System$2.getConstantPool(System.java:1227)
at java.lang.reflect.Method.getDefaultValue(Method.java:609)
at com.sample.App.main(App.java:23)
Annotation
classes haveMethods
with default values. It is useful to access the default value reflectively, but it blows up in a native image, even if you declare the annotation type inreflect-confg.json
.Here's an example error:
Sample project: sdeleuze/graalvm-native-issues#9
The text was updated successfully, but these errors were encountered: