Skip to content

[native-image] @Deleted classes #3656

Answered by zakkak
Vinche59 asked this question in Q&A
Aug 7, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

HI @Vinche59, my understanding is that those are marked as @deleted because they are essentially not supported. Even if there was a way to "Undelete" them your application would probably fail if they ever got reached, that said using --report-unsupported-elements-at-runtime is probably a safer way to handle this, since it will throw an exception if the corresponding classes get reached.

Unfortunately though --report-unsupported-elements-at-runtime is discouraged in production code, and also makes it harder to detect other issues in your native-image.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Vinche59
Comment options

@zakkak
Comment options

zakkak Aug 17, 2021
Collaborator

Answer selected by Vinche59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants