From: Shekar M. <sh...@mo...> - 2011-04-18 14:31:16
|
Hi All, I am trying to cross-compile some JDBC code (developed for Android) to an iPhone target. I get a compilation error (in XCODE) for XMLVM generated code constructs such as: _r22.d = [((java_sql_ResultSet*) _r0.o) getDouble___int:_r31.i]; I looked at the compat-lib for objc and the declaration for java_sql_ResultSet interface (in file java_sql_ResultSet.h) has no method definitions in it. So, I don't know why a construct such as: _r22.l = [((java_sql_ResultSet*) _r0.o) getLong___int:_r31.i]; seems to compile properly. Would someone know where the full definition for java_sql_ResultSet is, so I can add an implementation for getDouble___int method? Thanks, Shekar |
From: Shekar M. <sh...@mo...> - 2011-04-18 15:27:03
|
On a similar note, I wonder how I can add and contribute support for java.text package (or for that matter any missing classes that I need) for Android development? Thanks. On 4/18/11 10:31 AM, Shekar Mantha wrote: > Hi All, > > I am trying to cross-compile some JDBC code (developed for Android) to > an iPhone target. I get a compilation error (in XCODE) for XMLVM > generated code constructs such as: > > _r22.d = [((java_sql_ResultSet*) _r0.o) getDouble___int:_r31.i]; > > I looked at the compat-lib for objc and the declaration for > java_sql_ResultSet interface (in file java_sql_ResultSet.h) has no > method definitions in it. So, I don't know why a construct such as: > > _r22.l = [((java_sql_ResultSet*) _r0.o) getLong___int:_r31.i]; > > seems to compile properly. > > Would someone know where the full definition for java_sql_ResultSet is, > so I can add an implementation for getDouble___int method? > > Thanks, > Shekar > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Arno P. <ar...@pu...> - 2011-04-18 15:53:25
|
You can add functionality in xmlvm/src/android2iphone. Once you have something working, please upload a diff to our review system (details at XMLVM.org/contribute) Arno On Apr 18, 2011, at 8:27 AM, Shekar Mantha <sh...@mo...> wrote: > On a similar note, I wonder how I can add and contribute support for > java.text package (or for that matter any missing classes that I need) > for Android development? > > Thanks. > > On 4/18/11 10:31 AM, Shekar Mantha wrote: >> Hi All, >> >> I am trying to cross-compile some JDBC code (developed for Android) to >> an iPhone target. I get a compilation error (in XCODE) for XMLVM >> generated code constructs such as: >> >> _r22.d = [((java_sql_ResultSet*) _r0.o) getDouble___int:_r31.i]; >> >> I looked at the compat-lib for objc and the declaration for >> java_sql_ResultSet interface (in file java_sql_ResultSet.h) has no >> method definitions in it. So, I don't know why a construct such as: >> >> _r22.l = [((java_sql_ResultSet*) _r0.o) getLong___int:_r31.i]; >> >> seems to compile properly. >> >> Would someone know where the full definition for java_sql_ResultSet is, >> so I can add an implementation for getDouble___int method? >> >> Thanks, >> Shekar >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2011-04-18 15:51:41
|
Objective-C is a dynamically typed language. Even if methods are missing, the compiler will only issue a warning at best. You will only notice problems at runtime. Arno On Apr 18, 2011, at 7:31 AM, Shekar Mantha <sh...@mo...> wrote: > Hi All, > > I am trying to cross-compile some JDBC code (developed for Android) to > an iPhone target. I get a compilation error (in XCODE) for XMLVM > generated code constructs such as: > > _r22.d = [((java_sql_ResultSet*) _r0.o) getDouble___int:_r31.i]; > > I looked at the compat-lib for objc and the declaration for > java_sql_ResultSet interface (in file java_sql_ResultSet.h) has no > method definitions in it. So, I don't know why a construct such as: > > _r22.l = [((java_sql_ResultSet*) _r0.o) getLong___int:_r31.i]; > > seems to compile properly. > > Would someone know where the full definition for java_sql_ResultSet is, > so I can add an implementation for getDouble___int method? > > Thanks, > Shekar > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Shekar M. <sh...@mo...> - 2011-04-18 16:46:44
|
Arno, Thanks for your reply. I am getting a compile error on the "getDouble___int" method invocation. The error says: "Incompatible types in assignment" I am not an Objective-C expert but I wonder if a method is missing (or if a signature is not found), the compiler assumes a return value of "int" and thus raises the aforementioned error. So, it appears that I will have to fill in details in java_sql_ResultSet.[hm] with appropriate signatures and implementation. Please confirm. Shekar On 4/18/11 11:51 AM, Arno Puder wrote: > Objective-C is a dynamically typed language. Even if methods are > missing, the compiler will only issue a warning at best. You will only > notice problems at runtime. > > Arno > > On Apr 18, 2011, at 7:31 AM, Shekar Mantha<sh...@mo...> wrote: > >> Hi All, >> >> I am trying to cross-compile some JDBC code (developed for Android) to >> an iPhone target. I get a compilation error (in XCODE) for XMLVM >> generated code constructs such as: >> >> _r22.d = [((java_sql_ResultSet*) _r0.o) getDouble___int:_r31.i]; >> >> I looked at the compat-lib for objc and the declaration for >> java_sql_ResultSet interface (in file java_sql_ResultSet.h) has no >> method definitions in it. So, I don't know why a construct such as: >> >> _r22.l = [((java_sql_ResultSet*) _r0.o) getLong___int:_r31.i]; >> >> seems to compile properly. >> >> Would someone know where the full definition for java_sql_ResultSet is, >> so I can add an implementation for getDouble___int method? >> >> Thanks, >> Shekar >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users |