0 Replies Latest reply: May 4, 2014 4:47 AM by qiao RSS

    how to get actual type in generic?



      i have a problem,how to get actual type when i use generic.


      Some code like this:


      public class BaseResponse<D extends Serializable> implements Serializable {


      there is a method like this:

      public BaseResponse<SubmitResponse> submit();


      so,is it possible to get "SubmitResponse" when i use reflection to analyse the method "submit"?

      any help will be appreciated.