mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
8014836: Have GenericDeclaration extend AnnotatedElement
Reviewed-by: jfranck
This commit is contained in:
parent
d176f2abdf
commit
b4854e299c
1 changed files with 7 additions and 11 deletions
|
@ -439,15 +439,11 @@ public class CoreReflectionFactory {
|
||||||
ReflectionElement getGenericElement();
|
ReflectionElement getGenericElement();
|
||||||
|
|
||||||
// Functionality specific to the specialization
|
// Functionality specific to the specialization
|
||||||
|
/**
|
||||||
// Conceptually should have an override for getSource
|
* {@inheritDoc}
|
||||||
// returning GenericDeclaration, but GenericDeclaration
|
*/
|
||||||
// doesn't currently implement AnnotatedElement.
|
@Override
|
||||||
// /**
|
java.lang.reflect.TypeVariable<?> getSource();
|
||||||
// * {@inheritDoc}
|
|
||||||
// */
|
|
||||||
// @Override
|
|
||||||
// java.lang.reflect.GenericDeclaration getSource();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1296,8 +1292,8 @@ public class CoreReflectionFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AnnotatedElement getSource() {
|
public java.lang.reflect.TypeVariable<?> getSource() {
|
||||||
return (AnnotatedElement)source;
|
return sourceTypeVar;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected java.lang.reflect.TypeVariable<?> getSourceTypeVar() {
|
protected java.lang.reflect.TypeVariable<?> getSourceTypeVar() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue