QDox
  1. QDox
  2. QDOX-252

Generic types fail to resolve on nested interfaces

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      See these example classes:

      public class Dto {
      }
      
      public interface Validator<T extends Object> {
      	boolean validate(T obj);
      }
      
      public interface Getter<T extends Object> {
      	T get();
      }
      
      public interface Setter<T extends Object> extends Validator<T> {
      	void set(T obj);
      }
      
      public interface HelloService extends Getter<Dto>, Setter<Dto> {
      }
      

      When when retrieving methods for HelloService using getMethods(true), methods get(), set() and validate() are returned. When fetching the parameter types for those methods (getParameterTypes(true)) these parameter lists are returned:

      get: [ ]
      set: [Dto]
      validate: [T]
      

      Expected:

      get: [ ]
      set: [Dto]
      validate: [Dto]
      

        Activity

        Hide
        Robert Scholte added a comment -

        Nice test. And it seems to be a bug indeed.

        Show
        Robert Scholte added a comment - Nice test. And it seems to be a bug indeed.
        Robert Scholte made changes -
        Field Original Value New Value
        Fix Version/s 2.0 [ 15636 ]
        Hide
        Robert Scholte added a comment -

        Fixed in rev.1573

        Show
        Robert Scholte added a comment - Fixed in rev.1573
        Robert Scholte made changes -
        Resolution Fixed [ 1 ]
        Assignee Robert Scholte [ rfscholte ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Eduard Wirch
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: