[Mono-bugs] [Bug 636465] Monodroid generates incorrect java for subclasses of generic types.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 8 08:03:33 EDT 2010



--- Comment #3 from Jonathan Pryor <jpryor at novell.com> 2010-09-08 12:03:33 UTC ---
The example you outline is scenario (2), not scenario (1).

The difference is what happens in the Java proxy; for your example, we'd have:

    public class MyListView extends android.widget.ListView {...}
    public class MyTrickedOutListView extends MyListView {...}

Which is to say, the proxy for MyTrickedOutListView would inherit from the
proxy for MyListView.

This is why scenario (1) differs from scenario (2): without a [Register]
attribute on the type, we have scenario (2) and monodroid will derive the name
of the Java proxy based on the type name; as far as monodroid is concerned,
there is NO difference between:

    // within Mono.Android.dll
    class ArrayAdapter<T> : ArrayAdapter {...}


    // within some user assembly
    class ArrayAdapter<T> : ArrayAdapter {...}

(Nor do I want there to be a difference between them, as that would complicate
future support for binding arbitrary Java libraries outside of

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