Hi,

I've seen that classes that implemts NumberList has GetDeppCopyHandler, so
it should work. Is it right?

I've binded other amazon jar:

- AmazonInsights-android-sdk-2.0.24.jar
- login-with-amazon-sdk.jar
- gamecirclesdk.jar

All projects are on GitHub: https://github.com/mapo80/GameCircle.Monodroid


         [Register ("deepCopy", "()Lcom/amazon/ags/client/whispersync/model/
HighNumberList;", "GetDeepCopyHandler")]
        public virtual global::Com.Amazon.Ags.Client.Whispersync.Model.
HighNumberList DeepCopy ()
        {
            if (id_deepCopy == IntPtr.Zero)
                id_deepCopy = JNIEnv.GetMethodID (class_ref, "deepCopy", "()
Lcom/amazon/ags/client/whispersync/model/HighNumberList;");

            if (GetType () == ThresholdType)
                return global::Java.Lang.Object.GetObject<global::Com.Amazon
.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.CallObjectMethod  (
Handle, id_deepCopy), JniHandleOwnership.TransferLocalRef);
            else
                return global::Java.Lang.Object.GetObject<global::Com.Amazon
.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.
CallNonvirtualObjectMethod  (Handle, ThresholdClass, id_deepCopy),
 JniHandleOwnership.TransferLocalRef);
        } -


2013/11/27 Jonathan Pryor <jonpr...@vt.edu>

> On Nov 27, 2013, at 3:25 PM, Matteo Polito <matteo.pol...@gmail.com>
> wrote:
> > O, this should be right!!
>
> Nope! It'll result in infinite recursion and stack overflow.
>
> You want:
>
>         public abstract Java.Lang.Object DeepCopy();
>
> You'll also need to double-check that the generated NumberList type has a
> GetDeepCopyHandler() method (or something similar). If it doesn't, things
> get more complicated.
>
>  - 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

Reply via email to