diff --git a/Procyon.Reflection/src/main/java/com/strobel/reflection/MethodInfo.java b/Procyon.Reflection/src/main/java/com/strobel/reflection/MethodInfo.java index dbe846f5..64755b3d 100644 --- a/Procyon.Reflection/src/main/java/com/strobel/reflection/MethodInfo.java +++ b/Procyon.Reflection/src/main/java/com/strobel/reflection/MethodInfo.java @@ -727,7 +727,7 @@ class ReflectedMethod extends MethodInfo { final GenericParameter gp = (GenericParameter) p; final TypeVariable typeVariable = gp.getRawTypeVariable(); - if (typeVariable.getGenericDeclaration() == rawMethod) { + if (typeVariable.getGenericDeclaration().equals(rawMethod)) { gp.setDeclaringMethod(this); if (genericParameters == null) {