diff jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java @ 23376:ae27c683c128

Make ResolvedJava* types extend AnnotatedElement. Contributed-by: Vojin Jovanovic <vojin.jovanovic@oracle.com>
author Roland Schatz <roland.schatz@oracle.com>
date Fri, 06 May 2016 13:21:20 +0200
parents fb20e2d4f0bc
children b11f345e4af4
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java	Wed May 04 12:06:51 2016 +0200
+++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java	Fri May 06 13:21:20 2016 +0200
@@ -477,6 +477,12 @@
     }
 
     @Override
+    public Annotation[] getDeclaredAnnotations() {
+        Executable javaMethod = toJava();
+        return javaMethod == null ? null : javaMethod.getDeclaredAnnotations();
+    }
+
+    @Override
     public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
         Executable javaMethod = toJava();
         return javaMethod == null ? null : javaMethod.getAnnotation(annotationClass);