From: Shai <sha...@ya...> - 2012-01-22 19:12:10
|
Hi, I just ran into an issue with: o instanceof Object[] Where o is an array of Object subclass. This works as expected in Java but doesn't work with the C backend on iPhone (I'm not on the latest and greatest since we are approaching feature freeze on the iOS work). Is this something that is fixable in XMLVM? Are there workarounds? Thanks. |
From: Shai <sha...@ya...> - 2012-01-22 19:49:31
|
Looking further at the code its possible that the code that is failing is something like o instanceof byte[] which is also in that same segment. A workaround I was able to apply checks for the bug and tries a cast which is caught seamlessly detect the type (can't use reflection here). >________________________________ > From: Shai <sha...@ya...> >To: "xml...@li..." <xml...@li...> >Sent: Sunday, January 22, 2012 9:12 PM >Subject: [xmlvm-dev] Object array instanceof problem > > >Hi, >I just ran into an issue with: >o instanceof Object[] > > >Where o is an array of Object subclass. This works as expected in Java but doesn't work with the C backend on iPhone (I'm not on the latest and greatest since we are approaching feature freeze on the iOS work). >Is this something that is fixable in XMLVM? >Are there workarounds? > > >Thanks. > >------------------------------------------------------------------------------ >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >Xmlvm-developers mailing list >Xml...@li... >https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > > |
From: Arno P. <ar...@pu...> - 2012-01-22 21:48:40
Attachments:
isa-patch.txt
|
can you please check if the attached patch fixes the problem? Thanks, Arno On 1/22/12 11:12 AM, Shai wrote: > Hi, > I just ran into an issue with: > o instanceof Object[] > > Where o is an array of Object subclass. This works as expected in Java > but doesn't work with the C backend on iPhone (I'm not on the latest and > greatest since we are approaching feature freeze on the iOS work). > Is this something that is fixable in XMLVM? > Are there workarounds? > > Thanks. > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > > > > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers |
From: Shai <sha...@ya...> - 2012-01-23 05:07:48
|
Thanks, I tried this but I applied manually since I have a somewhat older version. As far as I can tell the only significant change is in XMLVM_ISA. After changing that I'm getting a crash for bad access: _r8.o = (*(JAVA_OBJECT (*)(JAVA_OBJECT)) *(((java_lang_Object*)_r2.o)->tib->itableBegin)[XMLVM_ITABLE_IDX_com_packagename_classname_getObjectId__])(_r2.o); Best Regards, Shai. >________________________________ > From: Arno Puder <ar...@pu...> >To: xml...@li... >Sent: Sunday, January 22, 2012 11:48 PM >Subject: Re: [xmlvm-dev] Object array instanceof problem > > >can you please check if the attached patch fixes the problem? > >Thanks, >Arno > > >On 1/22/12 11:12 AM, Shai wrote: >> Hi, >> I just ran into an issue with: >> o instanceof Object[] >> >> Where o is an array of Object subclass. This works as expected in Java >> but doesn't work with the C backend on iPhone (I'm not on the latest and >> greatest since we are approaching feature freeze on the iOS work). >> Is this something that is fixable in XMLVM? >> Are there workarounds? >> >> Thanks. >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> >> >> >> _______________________________________________ >> Xmlvm-developers mailing list >> Xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > >------------------------------------------------------------------------------ >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >Xmlvm-developers mailing list >Xml...@li... >https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > > |
From: Arno P. <ar...@pu...> - 2012-01-23 05:12:16
|
yes, the patch only changes XMLVM_ISA() in xmlvm.c. My tests seem to be running OK. I cannot deduce anything from the bad access error you reported. This could be something completely unrelated. Can you please try and come up with a small, self-contained Java sniplet that reproduces the error? Without that there is nothing I can do. Arno On 1/22/12 9:07 PM, Shai wrote: > Thanks, > I tried this but I applied manually since I have a somewhat older > version. As far as I can tell the only significant change is in XMLVM_ISA. > > After changing that I'm getting a crash for bad access: > _r8.o = (*(JAVA_OBJECT (*)(JAVA_OBJECT)) > *(((java_lang_Object*)_r2.o)->tib->itableBegin)[XMLVM_ITABLE_IDX_com_packagename_classname_getObjectId__])(_r2.o); > > Best Regards, > Shai. > > ------------------------------------------------------------------------ > *From:* Arno Puder <ar...@pu...> > *To:* xml...@li... > *Sent:* Sunday, January 22, 2012 11:48 PM > *Subject:* Re: [xmlvm-dev] Object array instanceof problem > > > can you please check if the attached patch fixes the problem? > > Thanks, > Arno > > > On 1/22/12 11:12 AM, Shai wrote: > > Hi, > > I just ran into an issue with: > > o instanceof Object[] > > > > Where o is an array of Object subclass. This works as expected in > Java > > but doesn't work with the C backend on iPhone (I'm not on the > latest and > > greatest since we are approaching feature freeze on the iOS work). > > Is this something that is fixable in XMLVM? > > Are there workarounds? > > > > Thanks. > > > > > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft > developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, > CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > > > > > > > _______________________________________________ > > Xmlvm-developers mailing list > > Xml...@li... > <mailto:Xml...@li...> > > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > <mailto:Xml...@li...> > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > > > > _______________________________________________ > Xmlvm-developers mailing list > Xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers |
From: Shai <sha...@ya...> - 2012-01-23 05:36:51
|
Thanks, I'll check again. >________________________________ > From: Arno Puder <ar...@pu...> >To: xml...@li... >Sent: Monday, January 23, 2012 7:12 AM >Subject: Re: [xmlvm-dev] Object array instanceof problem > > >yes, the patch only changes XMLVM_ISA() in xmlvm.c. My tests seem to be >running OK. I cannot deduce anything from the bad access error you >reported. This could be something completely unrelated. Can you please >try and come up with a small, self-contained Java sniplet that >reproduces the error? Without that there is nothing I can do. > >Arno > > >On 1/22/12 9:07 PM, Shai wrote: >> Thanks, >> I tried this but I applied manually since I have a somewhat older >> version. As far as I can tell the only significant change is in XMLVM_ISA. >> >> After changing that I'm getting a crash for bad access: >> _r8.o = (*(JAVA_OBJECT (*)(JAVA_OBJECT)) >> *(((java_lang_Object*)_r2.o)->tib->itableBegin)[XMLVM_ITABLE_IDX_com_packagename_classname_getObjectId__])(_r2.o); >> >> Best Regards, >> Shai. >> >> ------------------------------------------------------------------------ >> *From:* Arno Puder <ar...@pu...> >> *To:* xml...@li... >> *Sent:* Sunday, January 22, 2012 11:48 PM >> *Subject:* Re: [xmlvm-dev] Object array instanceof problem >> >> >> can you please check if the attached patch fixes the problem? >> >> Thanks, >> Arno >> >> >> On 1/22/12 11:12 AM, Shai wrote: >> > Hi, >> > I just ran into an issue with: >> > o instanceof Object[] >> > >> > Where o is an array of Object subclass. This works as expected in >> Java >> > but doesn't work with the C backend on iPhone (I'm not on the >> latest and >> > greatest since we are approaching feature freeze on the iOS work). >> > Is this something that is fixable in XMLVM? >> > Are there workarounds? >> > >> > Thanks. >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Try before you buy = See our experts in action! >> > The most comprehensive online learning library for Microsoft >> developers >> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, >> CSS3, MVC3, >> > Metro Style Apps, more. Free future releases when you subscribe now! >> > http://p.sf.net/sfu/learndevnow-dev2 >> > >> > >> > >> > _______________________________________________ >> > Xmlvm-developers mailing list >> > Xml...@li... >> <mailto:Xml...@li...> >> > https://lists.sourceforge.net/lists/listinfo/xmlvm-developers >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Xmlvm-developers mailing list >> Xml...@li... >> <mailto:Xml...@li...> >> https://lists.sourceforge.net/lists/listinfo/xmlvm-developers >> >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> >> >> >> _______________________________________________ >> Xmlvm-developers mailing list >> Xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > >------------------------------------------------------------------------------ >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >Xmlvm-developers mailing list >Xml...@li... >https://lists.sourceforge.net/lists/listinfo/xmlvm-developers > > > |