From 971ee3e3186f1515e382985ab23a8d32899c5a07 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Wed, 10 Nov 2021 19:29:29 +0100 Subject: Remap mixin injector target arguments even when method is not mapped E.g. there are no mapping entries for constructors cause their name is always `` but we nevertheless want to remap their argument types. We cannot determine whether the name is ambiguous in the mapped environment (because that check is based on the mappings), so we always keep the arguments when it previously had ones. --- src/test/java/a/pkg/A.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/test/java/a/pkg') diff --git a/src/test/java/a/pkg/A.java b/src/test/java/a/pkg/A.java index d91a6e5..3143407 100644 --- a/src/test/java/a/pkg/A.java +++ b/src/test/java/a/pkg/A.java @@ -3,6 +3,12 @@ package a.pkg; public class A extends AParent implements AInterface { private int aField; + public A() { + } + + public A(A arg) { + } + public void aMethod() { } @@ -21,6 +27,12 @@ public class A extends AParent implements AInterface { public void commonOverloaded(A arg) { } + public void unmappedOverloaded(Object arg) { + } + + public void unmappedOverloaded(A arg) { + } + @Override public void aInterfaceMethod() { } -- cgit