提交 e07a760c 编写于 作者: D darcy

8014836: Have GenericDeclaration extend AnnotatedElement

Reviewed-by: jfranck
上级 9c00a735
......@@ -439,15 +439,11 @@ public class CoreReflectionFactory {
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 @@ public class CoreReflectionFactory {
}
@Override
public AnnotatedElement getSource() {
return (AnnotatedElement)source;
public java.lang.reflect.TypeVariable<?> getSource() {
return sourceTypeVar;
}
protected java.lang.reflect.TypeVariable<?> getSourceTypeVar() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册