<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">S valóban!<br>
<br>
A megoldás:<br>
<pre style="" class="lang-java prettyprint prettyprinted"><code><span class="typ">JavaType</span><span class="pln"> type </span><span class="pun">=</span><span class="pln"> mapper</span><span class="pun">.</span><span class="pln">getTypeFactory</span><span class="pun">().</span><span class="pln">
constructCollectionType</span><span class="pun">(</span><span class="typ">List</span><span class="pun">.</span><span class="kwd">class</span><span class="pun">,</span><span class="pln"> </span><span class="typ">Foo</span><span class="pun">.</span><span class="kwd">class</span><span class="pun">)</span></code></pre>
<pre style="" class="lang-java prettyprint prettyprinted"><code><span class="typ">List</span><span class="pun"><</span><span class="typ">Foo</span><span class="pun">></span><span class="pln"> list </span><span class="pun">=</span><span class="pln"> mapper</span><span class="pun">.</span><span class="pln">readValue</span><span class="pun">(</span><span class="kwd">new</span><span class="pln"> </span><span class="typ">File</span><span class="pun">(</span><span class="str">"input.json"</span><span class="pun">),</span><span class="pln"> type</span><span class="pun">);</span></code></pre>
Misztikus nekem ez a generikus típusozás. :-)<br>
<br>
Köszi!<br>
<br>
Kálmán<br>
<br>
On 03/18/2014 05:40 PM, Gábor Lipták wrote:<br>
</div>
<blockquote
cite="mid:CAN-m_UmNJDvCPsM1xQHLB+5BdfytKUdhEGBrsyQd2J-5CM=c4g@mail.gmail.com"
type="cite">
<pre wrap="">Asszem ez pont a te bajod:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://stackoverflow.com/a/6852184/337621">http://stackoverflow.com/a/6852184/337621</a></pre>
</blockquote>
<br>
</body>
</html>