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 |