Properly log when the impossible happens

This commit is contained in:
Juan Martín Sotuyo Dodero 2024-04-28 12:36:57 -03:00
parent 11e6cc53c5
commit 124f908ca8

View File

@ -132,8 +132,8 @@ public class AttributeAxisIterator implements Iterator<Attribute> {
try {
Class<?> elementKlass = Class.forName(((ParameterizedType) t).getActualTypeArguments()[0].getTypeName());
return CONSIDERED_RETURN_TYPES.contains(elementKlass) || elementKlass.isEnum();
} catch (ClassNotFoundException ignored) {
// should never happen
} catch (ClassNotFoundException e) {
throw AssertionUtil.shouldNotReachHere("Method '" + method + "' should return a known type, but: " + e, e);
}
}
}