[mono-android] Binding classes don't implement Java.Lang.IComparable
I'm trying to bind droidtext (http://code.google.com/p/droidtext) and having a lot of trouble with classes not implementing Java.Lang.IComparable.CompareTo. I can look at the java files and see that the functions are implemented and public but bindings aren't being generated for them. Has anyone seen this before? I don't see anything in the logs about why this function isn't being picked up. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Binding classes don't implement Java.Lang.IComparable
On Oct 31, 2012, at 2:52 PM, Jeremy A. Kolb - ARA/NED wrote: > I’m trying to bind droidtext (http://code.google.com/p/droidtext) and having > a lot of trouble with classes not implementing > Java.Lang.IComparable.CompareTo. I haven't seen this reported previously, but we do have an open bug about binding droidtext. Can you add your observations to: https://bugzilla.xamarin.com/show_bug.cgi?id=8101 Thanks, - Jon ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Binding classes don't implement Java.Lang.IComparable
I just reported that bug. I'll see if I can't zip up the project and attach it. -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor Sent: Wednesday, October 31, 2012 3:18 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] Binding classes don't implement Java.Lang.IComparable On Oct 31, 2012, at 2:52 PM, Jeremy A. Kolb - ARA/NED wrote: > I'm trying to bind droidtext (http://code.google.com/p/droidtext) and having > a lot of trouble with classes not implementing > Java.Lang.IComparable.CompareTo. I haven't seen this reported previously, but we do have an open bug about binding droidtext. Can you add your observations to: https://bugzilla.xamarin.com/show_bug.cgi?id=8101 Thanks, - Jon ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Binding classes don't implement Java.Lang.IComparable
Hello, That is a known limitation. The thing is, *generics don't really exist* in compiled java classes and we always need to explicitly supply which class the Comparable compares. Hence the solution is, you add appropriate instantiated generic interface to Metadata.xml. This is an example: path="/api/package[@name='android.content']/class[@name='ComponentName']/implements[@name='java.lang.Comparable']" name="name">java.lang.ComparableAtsushi Eno Jeremy A. Kolb - ARA/NED wrote: I’m trying to bind droidtext (http://code.google.com/p/droidtext) and having a lot of trouble with classes not implementing Java.Lang.IComparable.CompareTo. I can look at the java files and see that the functions are implemented and public but bindings aren’t being generated for them. Has anyone seen this before? I don’t see anything in the logs about why this function isn’t being picked up. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Binding classes don't implement Java.Lang.IComparable
That doesn't make sense to me. IComparable.compareTo takes in an Object not another type so it shouldn't care about generics. -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Atsushi Eno Sent: Wednesday, October 31, 2012 3:25 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] Binding classes don't implement Java.Lang.IComparable Hello, That is a known limitation. The thing is, *generics don't really exist* in compiled java classes and we always need to explicitly supply which class the Comparable compares. Hence the solution is, you add appropriate instantiated generic interface to Metadata.xml. This is an example: java.lang.ComparableAtsushi Eno Jeremy A. Kolb - ARA/NED wrote: > > I'm trying to bind droidtext (http://code.google.com/p/droidtext) and > having a lot of trouble with classes not implementing > Java.Lang.IComparable.CompareTo. I can look at the java files and see > that the functions are implemented and public but bindings aren't > being generated for them. Has anyone seen this before? I don't see > anything in the logs about why this function isn't being picked up. > > > > ___ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Binding classes don't implement Java.Lang.IComparable
The implemented class doesn't contain compareTo(java.lang.Object) but compareTo(SomeSpecificType), whose type don't match and hence not regarded as implementation. If that's not about that, it is not likely about Comparable but different issue. Atsushi Eno Jeremy A. Kolb - ARA/NED wrote: That doesn't make sense to me. IComparable.compareTo takes in an Object not another type so it shouldn't care about generics. -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Atsushi Eno Sent: Wednesday, October 31, 2012 3:25 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] Binding classes don't implement Java.Lang.IComparable Hello, That is a known limitation. The thing is, *generics don't really exist* in compiled java classes and we always need to explicitly supply which class the Comparable compares. Hence the solution is, you add appropriate instantiated generic interface to Metadata.xml. This is an example: java.lang.ComparableAtsushi Eno Jeremy A. Kolb - ARA/NED wrote: I'm trying to bind droidtext (http://code.google.com/p/droidtext) and having a lot of trouble with classes not implementing Java.Lang.IComparable.CompareTo. I can look at the java files and see that the functions are implemented and public but bindings aren't being generated for them. Has anyone seen this before? I don't see anything in the logs about why this function isn't being picked up. ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Binding classes don't implement Java.Lang.IComparable
No it definitely implements compateTo(java.lang.Object: "public int compareTo(Object object)" -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Atsushi Eno Sent: Wednesday, October 31, 2012 3:40 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] Binding classes don't implement Java.Lang.IComparable The implemented class doesn't contain compareTo(java.lang.Object) but compareTo(SomeSpecificType), whose type don't match and hence not regarded as implementation. If that's not about that, it is not likely about Comparable but different issue. Atsushi Eno Jeremy A. Kolb - ARA/NED wrote: > That doesn't make sense to me. IComparable.compareTo takes in an Object not > another type so it shouldn't care about generics. > > -Original Message- > From: monodroid-boun...@lists.ximian.com > [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Atsushi Eno > Sent: Wednesday, October 31, 2012 3:25 PM > To: Discussions related to Mono for Android > Subject: Re: [mono-android] Binding classes don't implement > Java.Lang.IComparable > > Hello, > > That is a known limitation. The thing is, *generics don't really exist* in > compiled java classes and we always need to explicitly supply which class the > Comparable compares. > > Hence the solution is, you add appropriate instantiated generic interface to > Metadata.xml. This is an example: > > path="/api/package[@name='android.content']/class[@name='ComponentName']/implements[@name='java.lang.Comparable']" > name="name">java.lang.Comparable< > /attr> > > Atsushi Eno > > Jeremy A. Kolb - ARA/NED wrote: >> I'm trying to bind droidtext (http://code.google.com/p/droidtext) and >> having a lot of trouble with classes not implementing >> Java.Lang.IComparable.CompareTo. I can look at the java files and see >> that the functions are implemented and public but bindings aren't >> being generated for them. Has anyone seen this before? I don't see >> anything in the logs about why this function isn't being picked up. >> >> >> >> ___ >> Monodroid mailing list >> Monodroid@lists.ximian.com >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/mailman/listinfo/monodroid > ___ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > ___ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > > ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Binding classes don't implement Java.Lang.IComparable
https://bugzilla.xamarin.com/show_bug.cgi?id=8112 -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jeremy A. Kolb - ARA/NED Sent: Wednesday, October 31, 2012 3:59 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] Binding classes don't implement Java.Lang.IComparable No it definitely implements compateTo(java.lang.Object: "public int compareTo(Object object)" -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Atsushi Eno Sent: Wednesday, October 31, 2012 3:40 PM To: Discussions related to Mono for Android Subject: Re: [mono-android] Binding classes don't implement Java.Lang.IComparable The implemented class doesn't contain compareTo(java.lang.Object) but compareTo(SomeSpecificType), whose type don't match and hence not regarded as implementation. If that's not about that, it is not likely about Comparable but different issue. Atsushi Eno Jeremy A. Kolb - ARA/NED wrote: > That doesn't make sense to me. IComparable.compareTo takes in an Object not > another type so it shouldn't care about generics. > > -Original Message- > From: monodroid-boun...@lists.ximian.com > [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Atsushi Eno > Sent: Wednesday, October 31, 2012 3:25 PM > To: Discussions related to Mono for Android > Subject: Re: [mono-android] Binding classes don't implement > Java.Lang.IComparable > > Hello, > > That is a known limitation. The thing is, *generics don't really exist* in > compiled java classes and we always need to explicitly supply which class the > Comparable compares. > > Hence the solution is, you add appropriate instantiated generic interface to > Metadata.xml. This is an example: > > path="/api/package[@name='android.content']/class[@name='ComponentName']/implements[@name='java.lang.Comparable']" > name="name">java.lang.Comparable< > /attr> > > Atsushi Eno > > Jeremy A. Kolb - ARA/NED wrote: >> I'm trying to bind droidtext (http://code.google.com/p/droidtext) and >> having a lot of trouble with classes not implementing >> Java.Lang.IComparable.CompareTo. I can look at the java files and see >> that the functions are implemented and public but bindings aren't >> being generated for them. Has anyone seen this before? I don't see >> anything in the logs about why this function isn't being picked up. >> >> >> >> ___ >> Monodroid mailing list >> Monodroid@lists.ximian.com >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/mailman/listinfo/monodroid > ___ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > ___ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > > ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid