users@codemodel.java.net

Generics

From: <tedi.zanfolim_at_gmail.com>
Date: Tue, 21 Dec 2010 01:38:13 +0000 (GMT)

Hi,

I would like to generate the following code:

private List<MyObjectClass> myList;

But I am unable to make the list use the generic type. So far, I am
only able to get:

private List myList , using the code below.

JFieldVar property = clazz.field(JMod.PRIVATE, List.class, "myList");

Anyone knows how to make the list parameterized?

TIA,

Tedi