|
|
|
|
73
|
JavaNativeClass list = new JavaNativeClass(new JavaClass("java.util", "List", JavaClass.Kind.INTERFACE));
|
73
|
JavaNativeClass list = new JavaNativeClass(new JavaClass("java.util", "List", JavaClass.Kind.INTERFACE));
|
74
|
JavaClass arrayList = new JavaClass("java.util", "ArrayList", JavaClass.Kind.CLASS);
|
74
|
JavaClass arrayList = new JavaClass("java.util", "ArrayList", JavaClass.Kind.CLASS);
|
75
|
list.addMethod("constructor", JavaMethod.getNativeConstructor(arrayList, "()V"));
|
75
|
list.addMethod("constructor", JavaMethod.getNativeConstructor(arrayList, "()V"));
|
76
|
- list.addInstanceMethod("add", "add", "(TE;)Z"); List<?> l;
|
|
|
|
|
76
|
+ list.addInstanceMethod("add", "add", "(Ljava/lang/Object;)Z"); List<?> l;
|
77
|
list.addInstanceMethod("insert", "add", "(Ljava/lang/Object;I)V");
|
77
|
list.addInstanceMethod("insert", "add", "(Ljava/lang/Object;I)V");
|
78
|
list.addInstanceMethod("remove", "remove", "(Ljava/lang/Object;)Z");
|
78
|
list.addInstanceMethod("remove", "remove", "(Ljava/lang/Object;)Z");
|
79
|
list.addInstanceMethod("indexOf", "indexOf", "(Ljava/lang/Object;)I");
|
79
|
list.addInstanceMethod("indexOf", "indexOf", "(Ljava/lang/Object;)I");
|