[Mono-bugs] [Bug 645249] Setting LinearLayout.LayoutParams causes a java.lang.ClassCastException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 2 15:42:35 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=645249

https://bugzilla.novell.com/show_bug.cgi?id=645249#c3


--- Comment #3 from Jonathan Pryor <jpryor at novell.com> 2010-11-02 19:42:34 UTC ---
..and behold!  The Java version crashes with the exact same error.

(The "Java version" being a ~1:1 mapping from the C# code.)

In short, we're doing something wrong.

Also, that developerlife.com URL doesn't really help, as the bug results from
your ListAdapter.GetView() implementation, and the above URL doesn't use a
BaseAdapter anywhere.

Fortunately http://developerlife.com/tutorials/?p=327 does mention BaseAdapter.
 Unfortunately they don't use setLayoutParams().

Thus, in short, this sample fails because the corresponding Java likewise
fails, so it fails because we're missing something fundamental here.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list