From: Ian F. <ifr...@gm...> - 2011-03-21 14:30:29
|
It looks like its mistakenly pulling the quotations from the string as it should translate to: ... = @"YH7G3Y"; On Mon, Mar 21, 2011 at 10:04 AM, <D.D...@ak...> wrote: > Hello, > > I'm working on xmlvm in order to port java applications to Objective-C. > I noticed that when I try to run the cross-compiled Xcode project, I get an > error on variables declared as final. > In particular, I'm using some final strings. > Example > > (in MyClass.java) > > public final static String DEFAULT_PNR = "YH7G3Y"; > > In Xcode, file MyClass.m, this is converted to: > > Ek* _STATIC_MyClass_DEFAULT_PNR = @YH7G3Y; > > And I get an error: "Expected expression before @ token". > > > I noticed that when I remove the "final" token in java I don't get the > error. > Have you ever encountered the same problem? > > Thank you very much, > > Domenico De Fano > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > -- Ian D. Frisbie |