We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now, we can't create a generic hook for a generic base class like this:
public abstract class BaseAggregator<T extends SomeClass> { }
public class BaseHook<T extends SomeClass> extends Hook<BaseAggregator<T> { }
To support this scenario, it is necessary to change the following ReflectionUtils method:
ReflectionUtils
public static Class<?> getFeatureTypeArgumentAt(Class<?> clazz, int index) { Type superClassGenericType = getGenericTypeArgumentAt(clazz.getGenericSuperclass(), index); if (superClassGenericType instanceof TypeVariable) { return (Class<?>) getGenericTypeBound(clazz, ((TypeVariable) superClassGenericType).getName()); } return (Class<?>) superClassGenericType; }
The text was updated successfully, but these errors were encountered:
Probably could replace that method with something like Java Classmate. Shouldn't be hard.
Sorry, something went wrong.
No branches or pull requests
Right now, we can't create a generic hook for a generic base class like this:
To support this scenario, it is necessary to change the following
ReflectionUtils
method:The text was updated successfully, but these errors were encountered: