Re: map.xml body vs alternateBody vs nonVirtualAlternateBody
Steve Hannah <[email protected]> Sat, 10 Sep 2016 13:14:05 -0700
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <CABiRg+QLsOo7AUfih92woemGZS5d0k43Nai8J7Fz0Nz4_-g5Lw@mail.gmail.com> |
Thanks for the details. Very helpful to know. Steve On Friday, 9 September 2016, Jeroen Frijters <[email protected]> wrote: > Hi Steve, > > The normal one is <body>. The other two are only used for remapped types > (Object, String and Throwable). > > They have to the do the weird shape of the type system. E.g. on the Java > side it looks like cli.System.Object extends java.lang.Object. This means > that you can call java.lang.Object.toString() on a .NET type (that > obviously doesn't have this method), so when that happens the > <alternateBody> gets invoked. > > Similarly, when you extend cli.System.Object in Java and do a > super.toString() call, the <nonVirtualAlternateBody> gets invoked. > > Regards, > Jeroen > > > -----Original Message----- > > From: Steve Hannah [mailto:[email protected] <javascript:;>] > > Sent: Thursday, September 8, 2016 18:32 > > To: [email protected] <javascript:;> > > Subject: [Ikvm-developers] map.xml body vs alternateBody vs > > nonVirtualAlternateBody > > > > I have a question about the map.xml syntax. What is the difference > > between <body>, <alternateBody>. and <nonVirtualAlternateBody>. Some > > methods (e.g. toString()) include all three. Under what circumstance is > > each used? > > > > Best regards > > > > Steve > -- Steve Hannah Web Lite Solutions Corp. ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers