Re: Compiler can not find method java.lang.Long.compare referenced in NSNumber.compareTo method

11 views
Skip to first unread message

Daniel Dreibrodt

unread,
Mar 31, 2013, 2:35:46 AM3/31/13
to plist-...@googlegroups.com
Hi Golam,

right i accidentally used Long.compare which is only available since Java 7. I will change it to Long.compareTo.

Thanks for the report,

Daniel

Am 30.03.2013 um 14:17 schrieb Golam Mainuddin <golam.m...@gmail.com>:

Hi,


Trying to do something basic using the following and seem to get the above error ...


NSDictionary letterDict = (NSDictionary)PropertyListParser.parse(is);

NSDictionary wordDict =  (NSDictionary) letterDict.objectForKey(currentLetter);

String[] wordStringList  =  wordDict.allKeys();


Referencing Java.Lang.Long API seem to suggest the method is called compareTo as opposed to compare?

http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Long.html


appreciate any input.


Thanks,

G.


--
You received this message because you are subscribed to the Google Groups "plist-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plist-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages