From b4462eb6030f8e5a072ad4b6508d7a93d574522f Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Thu, 11 Nov 2021 15:06:54 +0100 Subject: Fix mixin @At target not considering mappings from parent classes When remapping the @At `target` argument, we used to only look at the mappings for the target class but we also need to consider mappings for its super classes and interfaces. This commit now searches for the target Psi method and then uses the regular remap method for PsiMethod to get its properly mapped name. --- src/test/java/a/pkg/A.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/java/a') diff --git a/src/test/java/a/pkg/A.java b/src/test/java/a/pkg/A.java index 3e20f3e..ff779b2 100644 --- a/src/test/java/a/pkg/A.java +++ b/src/test/java/a/pkg/A.java @@ -10,6 +10,7 @@ public class A extends AParent implements AInterface { } public void aMethod() { + aInterfaceMethod(); } public void aOverloaded() { -- cgit