2 Replies Latest reply on Apr 14, 2016 4:05 AM by bense111

    Jandex: UNRESOLVED_TYPE_VARIABLE and multiple bounds

    bense111

      Hi developers

       

      I'm trying to get the type of a method parameter with Jandex. The inspected (abstract) class has a variable type with multiple bounds:

       

      public abstract class MyClass<V extends MyOtherClass & MyInterface>
      

       

      The method parameter is of type V. Now I'm trying to get the type by

       

      MethodParameterInfo methodParameter = annotation.target().asMethodParameter();
      MethodInfo method = methodParameter.method();
      Type paramType = method.parameters().get(methodParameter.position());
      

       

      I'm getting a type with UNRESOLVED_TYPE_VARIABLE-kind. Is this probably a bug or am I doing something wrong? The problem doesn't exist with parameters with single bounds.

       

      Regards

      Ben