From: <D.D...@ak...> - 2011-03-21 14:19:09
|
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hello,<br><br>I'm working on xmlvm in order to port java applications to Objective-C.<br>I noticed that when I try to run the cross-compiled Xcode project, I get an error on variables declared as final. <br>In particular, I'm using some final strings. <br>Example<br><br>(in MyClass.java)<br><br> public final static String DEFAULT_PNR = "YH7G3Y";<br><br>In Xcode, file MyClass.m, this is converted to:<br><br> Ek* _STATIC_MyClass_DEFAULT_PNR = @YH7G3Y;<br><br>And I get an error: "Expected expression before @ token".<br><br><br>I noticed that when I remove the "final" token in java I don't get the error.<br>Have you ever encountered the same problem?<br><br>Thank you very much,<br><br>Domenico De Fano<br></div></font> |