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

    Jandex: UNRESOLVED_TYPE_VARIABLE and multiple bounds

    Ben Se Newbie

      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.