cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 160 forks source link

This is not automatically added when calling a method with generics #57

Closed renaudpawlak closed 8 years ago

renaudpawlak commented 8 years ago

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);
    }
}
renaudpawlak commented 8 years ago

see #47