aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/b/pkg
diff options
context:
space:
mode:
authorJonas Herzig <jonas@spark-squared.com>2021-11-10 19:29:29 +0100
committerJonas Herzig <jonas@spark-squared.com>2021-11-10 20:32:40 +0100
commit971ee3e3186f1515e382985ab23a8d32899c5a07 (patch)
treec2810cd7d53b4c774f737a0747b2d11b2cb371cf /src/test/java/b/pkg
parent6883c516e73f55062f27a5f98e306149896c4907 (diff)
downloadRemap-971ee3e3186f1515e382985ab23a8d32899c5a07.tar.gz
Remap-971ee3e3186f1515e382985ab23a8d32899c5a07.tar.bz2
Remap-971ee3e3186f1515e382985ab23a8d32899c5a07.zip
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 `<init>` 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.
Diffstat (limited to 'src/test/java/b/pkg')
-rw-r--r--src/test/java/b/pkg/B.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/b/pkg/B.java b/src/test/java/b/pkg/B.java
index 48abdac..030ffa2 100644
--- a/src/test/java/b/pkg/B.java
+++ b/src/test/java/b/pkg/B.java
@@ -3,6 +3,12 @@ package b.pkg;
public class B extends BParent implements BInterface {
private int bField;
+ public B() {
+ }
+
+ public B(B arg) {
+ }
+
public void bMethod() {
}
@@ -21,6 +27,12 @@ public class B extends BParent implements BInterface {
public void commonOverloaded(B arg) {
}
+ public void unmappedOverloaded(Object arg) {
+ }
+
+ public void unmappedOverloaded(B arg) {
+ }
+
@Override
public void bInterfaceMethod() {
}