On 1/26/06, Stephen Colebourne <[EMAIL PROTECTED]> wrote:

> Doesn't look anything wrong here...
>
> private static final String[] PADDING = new String[Character.MAX_VALUE + 1];
>
> static {
>    // space padding is most common, start with 64 chars
>    PADDING[32] = "                  ";
> }
>
> or in the padding method...
>
> String pad = PADDING[padChar];
> if (pad == null) {
>      pad = String.valueOf(padChar);
> }
> while (pad.length() < repeat) {
>      pad = pad.concat(pad);
> }
> PADDING[padChar] = pad;
> return pad.substring(0, repeat);
>
>
> So, I'm struggling to see what might be happening. Nevertheless, if its
> wrong it needs fixing.

Mhmm, strange, looks quite alright in the debugger (only PADDING[32]
is filled with something, the other values are null). Perhaps a
YourKit problem ? I'll try to get YourKit to run with Mustang (which
provides more info apparently) and profile again.

regards,
Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to