Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[native-image] The -report-unsupported-elements-at-runtime flag should support missing classes declared in annotations #641

Closed
graemerocher opened this issue Aug 27, 2018 · 1 comment

Comments

@graemerocher
Copy link
Member

A class not on the classpath but present in an annotation results in

Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
	at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724)
	at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531)
	at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355)
	at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286)
	at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)

Apart from the fact that it is currently almost impossible to understand what class caused the issue this behaviour is not consistent with the -report-unsupported-elements-at-runtime flag.

The -report-unsupported-elements-at-runtime flag should cause this error to be ported at runtime.

Relates to #470

@cstancu
Copy link
Member

cstancu commented Aug 27, 2018

This duplicates #597.

@cstancu cstancu closed this as completed Aug 27, 2018
zakkak added a commit to zakkak/mandrel that referenced this issue Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants