title: How to Declare JaxBElement for List<Long> elements?
body: <p>Can someone explain me how to declare JaxBElement for <code>List&lt;Long&gt;</code></p>
  
  <pre><code>JAXBElement&lt;List&lt;Long&gt;&gt; jaxbElement = new JAXBElement&lt;List&lt;Long&gt;&gt;(new QName(""),
       List.class,long.class, pojo.getExpectedvalue());
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>The constructor <code>JAXBElement&lt;List&lt;Long&gt;&gt;(QName, Class&lt;list&gt;, Class&lt;Long&gt;, List&lt;Long&gt;)</code> is undefined, it expects long value in parameter <code>Class&lt;list&gt;</code></p>
  </blockquote>
  
  <p>I am declaring in this way but getting error?</p>