[Mono-bugs] [Bug 640194] New: Cannot override TextView.Text
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Sep 17 13:00:01 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=640194
https://bugzilla.novell.com/show_bug.cgi?id=640194#c0
Summary: Cannot override TextView.Text
Classification: Mono
Product: MonoDroid
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Class Libraries
AssignedTo: mkestner at novell.com
ReportedBy: jpobst at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Repro:
public class MyTextView : TextView
{
public MyTextView (IntPtr handle) : base (handle)
{
}
public override Java.Lang.CharSequence Text {
get { return base.Text; }
set { base.Text = value; }
}
}
Compilation Exception:
stderr: C:\Users\Jonathan\Documents\Visual Studio
2010\Projects\MonoDroidApplication5\obj\Debug\android\src\monoDroidApplication5\Activity1_MyTextView.java:46:
setText(java.lang.CharSequence) in monoDroidApplication5.Activity1_MyTextView
cannot override setText(java.lang.CharSequence) in android.widget.TextView;
overridden method is final
public void setText (java.lang.CharSequence p0)
I guess this is due to TextView having 5 setText methods, 4 of which are final,
and 1 which is not:
http://developer.android.com/reference/android/widget/TextView.html
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list