Get actual type of generic type argument on abstract superclass
It’s definitely possible to extract it from Class#getGenericSuperclass() because it’s not defined during runtime, but during compiletime by FooDao extends BaseDao<Foo>. Here’s a kickoff example how you could extract the desired generic super type in the constructor of the abstract class, taking a hierarchy of subclasses into account (along with a real world use case … Read more