changeset 2157:0f8e9a0e5d9a

8014836: Have GenericDeclaration extend AnnotatedElement Reviewed-by: jfranck
author darcy
date Fri, 24 May 2013 11:26:17 -0700
parents 6e5076af4660
children b391ecea538e
files src/share/sample/language/model/CoreReflectionFactory.java
diffstat 1 files changed, 7 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/sample/language/model/CoreReflectionFactory.java	Fri May 24 15:27:27 2013 +0100
+++ b/src/share/sample/language/model/CoreReflectionFactory.java	Fri May 24 11:26:17 2013 -0700
@@ -439,15 +439,11 @@
         ReflectionElement getGenericElement();
 
         // Functionality specific to the specialization
-
-        // Conceptually should have an override for getSource
-        // returning GenericDeclaration, but GenericDeclaration
-        // doesn't currently implement AnnotatedElement.
-//         /**
-//          * {@inheritDoc}
-//          */
-//         @Override
-//         java.lang.reflect.GenericDeclaration getSource();
+        /**
+         * {@inheritDoc}
+         */
+        @Override
+        java.lang.reflect.TypeVariable<?> getSource();
     }
 
     /**
@@ -1296,8 +1292,8 @@
         }
 
         @Override
-        public AnnotatedElement getSource() {
-            return (AnnotatedElement)source;
+        public java.lang.reflect.TypeVariable<?> getSource() {
+            return sourceTypeVar;
         }
 
         protected java.lang.reflect.TypeVariable<?> getSourceTypeVar() {