This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]