Normally JSweet automatically adds a this target when calling a method defined on the current class... however, it does not work when the method has generics and defines it own generics. For example:
public class AddThisOnGenericMethods<T> {
private <U> void m(AddThisOnGenericMethods<U> i) {
}
public <U> void m2(AddThisOnGenericMethods<U> i) {
m(i);
}
public void m3(AddThisOnGenericMethods<String> i) {
m(i);
}
}
Normally JSweet automatically adds a
this
target when calling a method defined on the current class... however, it does not work when the method has generics and defines it own generics. For example: