-
Hello, I use an old library who heavily use I'd want to know if there's a mechanism to "Undelete" a @deleted class when building a native image with GraalVM (without using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
HI @Vinche59, my understanding is that those are marked as Unfortunately though |
Beta Was this translation helpful? Give feedback.
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 yournative-image
.