Skip to content

Commit 9b5bc2b

Browse files
author
Christian Wimmer
committed
[GR-35118] Avoid duplication of Class.arrayType() due to covariant return type.
PullRequest: graal/10421
2 parents 3d3162d + b763102 commit 9b5bc2b

File tree

1 file changed

+4
-4
lines changed
  • substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/hub

1 file changed

+4
-4
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/hub/DynamicHub.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
@SuppressWarnings({"static-method", "serial"})
9292
@SuppressFBWarnings(value = "Se", justification = "DynamicHub must implement Serializable for compatibility with java.lang.Class, not because of actual serialization")
9393
public final class DynamicHub implements JavaKind.FormatWithToString, AnnotatedElement, java.lang.reflect.Type, GenericDeclaration, Serializable,
94-
Target_java_lang_invoke_TypeDescriptor_OfField<DynamicHub>, Target_java_lang_constant_Constable {
94+
Target_java_lang_invoke_TypeDescriptor_OfField, Target_java_lang_constant_Constable {
9595

9696
/** Marker value for {@link #classLoader}. */
9797
static final Object NO_CLASS_LOADER = new Object();
@@ -1627,18 +1627,18 @@ interface Target_java_lang_invoke_TypeDescriptor {
16271627

16281628
@Substitute
16291629
@TargetClass(className = "java.lang.invoke.TypeDescriptor", innerClass = "OfField", onlyWith = JDK17OrLater.class)
1630-
interface Target_java_lang_invoke_TypeDescriptor_OfField<F extends Target_java_lang_invoke_TypeDescriptor_OfField<F>> extends Target_java_lang_invoke_TypeDescriptor {
1630+
interface Target_java_lang_invoke_TypeDescriptor_OfField extends Target_java_lang_invoke_TypeDescriptor {
16311631
@KeepOriginal
16321632
boolean isArray();
16331633

16341634
@KeepOriginal
16351635
boolean isPrimitive();
16361636

16371637
@KeepOriginal
1638-
F componentType();
1638+
DynamicHub componentType();
16391639

16401640
@KeepOriginal
1641-
F arrayType();
1641+
DynamicHub arrayType();
16421642
}
16431643

16441644
/** FIXME: How to handle java.lang.Class.ReflectionData? */

0 commit comments

Comments
 (0)