[Mono-bugs] [Bug 675179] New: javac error when generating proxy for type inheriting both ArrrayAdapter<T> and ISpinnerAdapter
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Feb 25 14:44:49 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=675179
https://bugzilla.novell.com/show_bug.cgi?id=675179#c0
Summary: javac error when generating proxy for type inheriting
both ArrrayAdapter<T> and ISpinnerAdapter
Classification: Mono
Product: MonoDroid
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Tools
AssignedTo: mkestner at novell.com
ReportedBy: jpryor at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=416342)
--> (http://bugzilla.novell.com/attachment.cgi?id=416342)
AdapterTest.zip
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13
When creating a class that contains a method that matches a signature from both
a base class and an implemented interface, the method is emitted twice in the
generated java proxy, resulting in a javac compilation error.
For example:
public class CompanyAdapter
: Android.Widget.ArrayAdapter<string>
, Android.Widget.ISpinnerAdapter
{
public override View GetView(int p, View v, ViewGroup parent)
{
throw new NotImplementedException();
}
}
Reproducible: Always
Steps to Reproduce:
1. Unzip AdapterTest.zip
2. cd AdapterTest
3. build
Actual Results:
bj/Debug/android/src/adaptertest/CompanyAdapter.java:139:
getView(int,android.view.View,android.view.ViewGroup) is already defined in
adaptertest.CompanyAdapter
public android.view.View getView (int p0, android.view.View p1,
android.view.ViewGroup p2)
^
obj/Debug/android/src/adaptertest/CompanyAdapter.java:144:
n_getView(int,android.view.View,android.view.ViewGroup) is already defined in
adaptertest.CompanyAdapter
Expected Results:
No build error.
--
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