No matter whether I switch to use the way the article discuss or the one I try (in Child constructor), it all fails. I think I have problem with the concept, but no idea where I make mistakes. Is the constructor trying to obtain the type in super class (i.e. T in Father.java)?
I appreciate any help.
Thank in advice.
subject: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType