diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/ConstructorReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/ConstructorReplacement.java deleted file mode 100644 index a1c689e895dd9..0000000000000 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/ConstructorReplacement.java +++ /dev/null @@ -1,55 +0,0 @@ -package io.quarkus.runtime.graal; - -import java.lang.annotation.Annotation; -import java.lang.reflect.AnnotatedType; -import java.lang.reflect.Constructor; -import java.lang.reflect.Type; - -import com.oracle.svm.core.annotate.Alias; -import com.oracle.svm.core.annotate.Substitute; -import com.oracle.svm.core.annotate.TargetClass; - -@TargetClass(Constructor.class) -final class ConstructorReplacement { - - @Alias - public Class getDeclaringClass() { - return null; - } - - @Alias - public T getAnnotation(Class annotationClass) { - return null; - } - - @Alias - public Annotation[] getDeclaredAnnotations() { - return null; - } - - @Substitute - public AnnotatedType getAnnotatedReturnType() { - return new AnnotatedType() { - @Override - public Type getType() { - return getDeclaringClass(); - } - - @Override - public T getAnnotation(Class annotationClass) { - return ConstructorReplacement.class.getAnnotation(annotationClass); - } - - @Override - public Annotation[] getAnnotations() { - return ConstructorReplacement.class.getDeclaredAnnotations(); - } - - @Override - public Annotation[] getDeclaredAnnotations() { - return ConstructorReplacement.class.getDeclaredAnnotations(); - } - }; - } - -} diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/MethodReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/MethodReplacement.java deleted file mode 100644 index 5b0a8fb6d7bdf..0000000000000 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/MethodReplacement.java +++ /dev/null @@ -1,55 +0,0 @@ -package io.quarkus.runtime.graal; - -import java.lang.annotation.Annotation; -import java.lang.reflect.AnnotatedType; -import java.lang.reflect.Method; -import java.lang.reflect.Type; - -import com.oracle.svm.core.annotate.Alias; -import com.oracle.svm.core.annotate.Substitute; -import com.oracle.svm.core.annotate.TargetClass; - -@TargetClass(Method.class) -final class MethodReplacement { - - @Alias - public Type getGenericReturnType() { - return null; - } - - @Alias - public T getAnnotation(Class annotationClass) { - return null; - } - - @Alias - public Annotation[] getDeclaredAnnotations() { - return null; - } - - @Substitute - public AnnotatedType getAnnotatedReturnType() { - return new AnnotatedType() { - @Override - public Type getType() { - return getGenericReturnType(); - } - - @Override - public T getAnnotation(Class annotationClass) { - return MethodReplacement.class.getAnnotation(annotationClass); - } - - @Override - public Annotation[] getAnnotations() { - return MethodReplacement.class.getDeclaredAnnotations(); - } - - @Override - public Annotation[] getDeclaredAnnotations() { - return MethodReplacement.class.getDeclaredAnnotations(); - } - }; - } - -} diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/ParameterReplacement.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/ParameterReplacement.java deleted file mode 100644 index 962f7cff887e3..0000000000000 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/ParameterReplacement.java +++ /dev/null @@ -1,55 +0,0 @@ -package io.quarkus.runtime.graal; - -import java.lang.annotation.Annotation; -import java.lang.reflect.AnnotatedType; -import java.lang.reflect.Parameter; -import java.lang.reflect.Type; - -import com.oracle.svm.core.annotate.Alias; -import com.oracle.svm.core.annotate.Substitute; -import com.oracle.svm.core.annotate.TargetClass; - -@TargetClass(Parameter.class) -final class ParameterReplacement { - - @Alias - public Type getParameterizedType() { - return null; - } - - @Alias - public T getAnnotation(Class annotationClass) { - return null; - } - - @Alias - public Annotation[] getDeclaredAnnotations() { - return null; - } - - @Substitute - public AnnotatedType getAnnotatedType() { - return new AnnotatedType() { - @Override - public Type getType() { - return getParameterizedType(); - } - - @Override - public T getAnnotation(Class annotationClass) { - return ParameterReplacement.class.getAnnotation(annotationClass); - } - - @Override - public Annotation[] getAnnotations() { - return ParameterReplacement.class.getDeclaredAnnotations(); - } - - @Override - public Annotation[] getDeclaredAnnotations() { - return ParameterReplacement.class.getDeclaredAnnotations(); - } - }; - } - -}