Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on extension class involving super constructor generic parameter referencing the super class's type var #392

Closed
rsmckinney opened this issue Oct 26, 2022 · 1 comment

Comments

@rsmckinney
Copy link
Member

Compile error on extension class involving super constructor generic parameter referencing the super class's type var.

The essential bits:

Super-class

package abc;

public class SuperClass<T extends SuperClass<T>> {
    public SuperClass(Class<T> classT) {
        . . .
    }
}

Subclass

package abc;

public class SubClass extends SuperClass<SubClass>{
    public SubClass() {
        super(SubClass.class);
    }
}

Extension class

package myproject.extensions.abc.SubClass;
. . .
@Extension
public class SubClassExt {
  public static void myMethod(@This SubClass thiz) {
    . . .
  }
}

Error: Cannot find symbol class T

rsmckinney added a commit that referenced this issue Oct 26, 2022
@rsmckinney
Copy link
Member Author

Fix available with release 2022.1.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant