# HG changeset patch # User darcy # Date 1369419977 25200 # Node ID b694bd72f6350abfb0594c136633dc1dccafd149 # Parent b87d5c2f1df8be19383cca51b8d3ea81456471e6 8014836: Have GenericDeclaration extend AnnotatedElement Reviewed-by: jfranck diff -r b87d5c2f1df8 -r b694bd72f635 langtools/src/share/sample/language/model/CoreReflectionFactory.java --- a/langtools/src/share/sample/language/model/CoreReflectionFactory.java Fri May 24 15:27:27 2013 +0100 +++ b/langtools/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() {