title: Passing List<Integer> with reflection
body: <p>I have a Java method: </p>
  
  <pre><code>  public void setPri(List&lt;Integer&gt; pri) { this.pri = pri; }
  </code></pre>
  
  <p>What I want to do is call the method and pass a List.  What is the correct approach using reflection?</p>
  
  <p>I was trying the following:</p>
  
  <pre><code>  method = object.getClass().getDeclaredMethod("setPri", List.class);
    method.invoke(null,new Object[] { pri });
  </code></pre>