There was a post a few days ago about a StringBuilder problem on MacOs Java 1.5. I think this is the same problem (i.e Java not Clojure).
Rgds, Adrian. On Thu, Jun 25, 2009 at 4:52 AM, Cosmin Stejerean <cstejer...@gmail.com>wrote: > > > On Wed, Jun 24, 2009 at 8:59 PM, CuppoJava <patrickli_2...@hotmail.com>wrote: > >> >> Hi guys, >> I'm having the hardest time figuring out why this won't run. I've been >> staring at it for the last half hour, and it's only a single line. >> Another pair of eyes would be beneficial I think. >> >> (.substring (StringBuilder. "i must be blind") 4) >> (.substring (StringBuilder. "i must be blind") (int 4)) >> >> Both give me: >> >> java.lang.IllegalArgumentException: No matching method found: >> substring for class java.lang.StringBuilder >> > > Odd, I get the same error running against Clojure 1.0 > > Clojure 1.0.0- > user=> (.substring (StringBuilder. "i must be blind") 4) > java.lang.IllegalArgumentException: No matching method found: substring for > class java.lang.StringBuilder (NO_SOURCE_FILE:0) > user=> (.substring (StringBuilder. "i must be blind") (int 4)) > java.lang.IllegalArgumentException: No matching method found: substring for > class java.lang.StringBuilder (NO_SOURCE_FILE:0) > > -- > Cosmin Stejerean > http://offbytwo.com > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---