Top Description Methods
com.oracle.svm.core.annotate

public @Interface KeepOriginal

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD, TYPE
@Platforms:HOSTED_ONLY
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, org.graalvm.nativeimage.Platform, .Platforms

If a class annotated with TargetClass is also annotated with Substitute, all non-substituted methods in that class are by default treated as deleted. This annotation changes the behavior: A method annotated with KeepOriginal keeps the original definition of the method.

If this annotation is used to the * substituted type itself, then the original definition of all methods and fields in the target type are kept by default.

The element can also be annotated with TargetElement to specify additional properties. See TargetClass for an overview of the annotation system.

Since
22.3

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString