Bug 8134 - JavaList needs to provide java.util.List methods to make it valid to derive from ArrayList
Summary: JavaList needs to provide java.util.List methods to make it valid to derive f...
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.3.x
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
Depends on:
Reported: 2012-11-01 08:35 UTC by Atsushi Eno
Modified: 2012-11-01 13:36 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Atsushi Eno 2012-11-01 08:35:45 UTC
This is an exposed bug from repro case for bug #8112. generator results in 

It results in such errors:

        obj/Debug/generated/src/Com.Lowagie.Text.Phrase.cs(8,30): error CS0535: `Com.Lowagie.Text.Phrase' does not implement interface member `Com.Lowagie.Text.ITextElementArray.Add(Java.Lang.Object)'
        obj/Debug/generated/src/Com.Lowagie.Text.Section.cs(8,30): error CS0535: `Com.Lowagie.Text.Section' does not implement interface member `Com.Lowagie.Text.ITextElementArray.Add(Java.Lang.Object)'

This happens because these types derive from java.util.ArrayList, but since we don't support these types, they simply cannot be bound.

(What's the point of dare to removing them now that lack of those types are rather harmful btw? Is optimization still preferred against those issues? The same applies to missing java.lang.reflect which blocks google-guice and roboguice.)
Comment 1 Atsushi Eno 2012-11-01 10:25:26 UTC
This turned out to be rather a (another) fundamental issue in supporting java.util.ArrayList as JavaList. Basically the problem is: we *alter* ArrayList with JavaList but without supplying lacking methods. 

They could be added to JavaList and that "fixes" this issue.
Comment 2 Jeremy Kolb 2012-11-01 10:27:15 UTC
This is unfortunate.  I need the Paragraph class that depends on Phrase.
Comment 3 Jeremy Kolb 2012-11-01 10:32:47 UTC
Ok I manually added them using add-node and that seems to work.
Comment 4 Atsushi Eno 2012-11-01 13:36:33 UTC
(subject changed, and) this is now implemented and will be available in the next release.