https://bugzilla.novell.com/show_bug.cgi?id=680001
https://bugzilla.novell.com/show_bug.cgi?id=680001#c0 Summary: Linker breaks ListActivity Classification: Mono Product: MonoDroid Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Tools AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Build the following code as a Release build: using System; using Android.App; using Android.Content; using Android.OS; namespace P14WithMd26Take2 { [Activity (Label = "Linker Bug", MainLauncher = true)] public class Activity1 : ListActivity { protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); ListView.ItemClick += (s, e) => { }; } } } When running, I get the following error: I/MonoDroid( 9561): UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for Android.Widget.ItemClickImplementor ---> System.ArgumentException: Couldn't bind to method 'GetOnItemClickHandler'. I/MonoDroid( 9561): at System.Delegate.GetCandidateMethod (System.Type type, System.Type target, System.String method, BindingFlags bflags, Boolean ignoreCase, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0 I/MonoDroid( 9561): at System.Delegate.CreateDelegate (System.Type type, System.Type target, System.String method, Boolean ignoreCase, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0 I/MonoDroid( 9561): at System.Delegate.CreateDelegate (System.Type type, System.Type target, System.String method) [0x00000] in <filename unknown>:0 I/MonoDroid( 9561): at Android.Runtime.JNIEnv.RegisterJniNatives (IntPtr typeName_ptr, Int32 typeName_len, IntPtr jniClass, IntPtr methods_ptr, Int32 methods_len) [0x00000] in <filename unknown>:0 I/MonoDroid( 9561): at (wrapper delegate-invoke) <Module>:invoke_intptr__this___intptr_intptr_string_string (intptr,intptr,string,string) I/MonoDroid( 9561): at Android.Runtime.JNIEnv.GetMethodID (IntPtr kls, System.String name, System.String signature) [0x00000] in <filename unknown>:0 I/MonoDroid( 9561): at Android.Widget.ItemClickImplementor..cctor () [0x00000] in <filename unknown>:0 I/MonoDroid( 9561): --- End of inner exception stack trace --- I/MonoDroid( 9561): at Android.Widget.AdapterView.add_ItemClick (System.EventHandler`1<Android.Widget.ItemEventArgs>) <0x00027> I/MonoDroid( 9561): at P14WithMd26Take2.Activity1.OnCreate (Android.OS.Bundle) <0x000bb> I/MonoDroid( 9561): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x00057> I/MonoDroid( 9561): at (wrapper dynamic-method) object.7f48b655-3c64-4396-8a02-cc9ca5dcf1f9 (intptr,intptr,intptr) <0x00033> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
