This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
How to create an instance of a java class with type parameter
- From: Santosh Rajan <santrajan at gmail dot com>
- To: kawa at sourceware dot org
- Date: Sat, 6 Nov 2010 06:57:48 +0530
- Subject: How to create an instance of a java class with type parameter
I am trying to create an instance of a java class that requires a type
parameter. The compiler does not show an error. However I get an error
at run time. Here is the code.
?(android.widget.ArrayAdapter<String> (this)
android.R$layout:simple_list_item_1))
I seem to be doing something wrong here. Is there a correct way to do it?
--
http://hi.im/santosh