Rhino tries to convert a param that is T without any boundry and fails
pietro-lopes opened this issue ยท 1 comments
VariableTypeInfo should implement the following function:
@Override
public boolean shouldConvert() {
return this.asClass() != Object.class;
}so it does not try to convert T that got no boundry.
Without this you can get errors like Cannot convert 2 to T
after PR #55 it should be this:
@Override
public boolean shouldConvert() {
return getBounds() != TypeInfo.EMPTY_ARRAY;
}