Hi @kaqqao , thank you again for this great library. I think I might have found a bug:
@Test
public void testErase() throws Exception {
GenericTypeReflector.erase(
GenericTypeReflector.getExactReturnType(
E2.class.getMethod("getVal"),
GenericTypeReflector.addWildcardParameters(E2.class)));
}
public static class E2<T extends String> {
private final T val;
E2(final T val) {
this.val = val;
}
public T getVal() {
return val;
}
}
Expected result: String.class
Actual result: RuntimeException
java.lang.RuntimeException: not supported: class io.leangen.geantyref.CaptureTypeImpl
at io.leangen.geantyref.GenericTypeReflector.erase(GenericTypeReflector.java:87)
at org.jdbi.v3.core.mapper.TestEnums.testErase(TestEnums.java:111)
Hi @kaqqao , thank you again for this great library. I think I might have found a bug:
Expected result: String.class Actual result: RuntimeException