Wow, you really got to the bottom of this. Reading your post, it all
makes sense, but it leads me to wonder why StringBuilder was designed
in such a fashion and why the docs would go so far as to lie about it.
Either way, thanks for taking the time to help me out. This community
is a big part of w
On Jun 13, 2009, at 10:46 PM, Stephen C. Gilardi wrote:
user=> (.setCharAt s 0 \c)
java.lang.IllegalArgumentException: Can't call public method of non-
public class: public void
java.lang.AbstractStringBuilder.setCharAt(int,char) (NO_SOURCE_FILE:0)
I'm not sure why.
StringBuilder extends
That doesn't work either. It appears this isn't an issue with Java 6,
but that doesn't help me on my PPC powerbook, which is apparently
stuck with the Java 5 JRE for the foreseeable future.
Thanks,
Travis
On Jun 14, 10:44 am, James Reeves wrote:
> On Jun 14, 3:28 am, tmountain wrote:
>
> > jav
On Jun 14, 3:28 am, tmountain wrote:
> java.lang.IllegalArgumentException: No matching method found:
> setCharAt for class java.lang.StringBuilder (NO_SOURCE_FILE:0)
> user=> (type (char \a))
> java.lang.Character
> ; should be char?
You could try: (.charValue \a)
- James
--~--~-~--~---
On Jun 14, 4:40 am, Wrexsoul wrote:
> What I miss is foo-array for foo not in #{int long float double},
> particularly for (= foo byte).
You can use (make-array Byte/TYPE size) and (into-array Byte/TYPE byte-
coll).
- James
--~--~-~--~~~---~--~~
You received this
On Jun 13, 10:46 pm, "Stephen C. Gilardi" wrote:
> On Jun 13, 2009, at 7:37 PM, Kevin Downey wrote:
>
> > works for me
>
> It's working for me in Java 6, but not Java 5. It looks like something
> changed there.
Autoboxing.
What I miss is foo-array for foo not in #{int long float double},
part
On Jun 13, 2009, at 7:37 PM, Kevin Downey wrote:
works for me
It's working for me in Java 6, but not Java 5. It looks like something
changed there. In Java 5, I'm getting:
user=> (.setCharAt s 0 \c)
java.lang.IllegalArgumentException: Can't call public method of non-
public class: public
user=> (def s (StringBuilder. "aaa"))
#'user/s
user=> (. s setCharAt 0 \b)
nil
user=> s
#
user=> (. s setCharAt (int 0) (char \b))
nil
user=> (. s setCharAt (int 0) (char \e))
nil
user=> s
#
user=>
works for me
On Sat, Jun 13, 2009 at 7:28 PM, tmountain wrote:
>
> I'm writing some simple code,