This is a first shot from me at it:
Replacing all
   buffer.put((byte) c);
by
   protected void putChar(char c) {
        if ((c & 0xff00) != 0) {
            final byte shifted = (byte)(((int)c) >> 8);
            buffer.put(shifted);
        }
        buffer.put((byte)c);
    }

which breaks unit tests and leads to exceptions later. I had no time
to investigate further.

  Bernd


On Sat, Sep 22, 2012 at 10:24 PM, Niklas Gustavsson
<[email protected]> wrote:
> On Thu, Sep 20, 2012 at 9:16 AM, Bernd Fondermann <[email protected]> 
> wrote:
>> when a stanza contains Characters which don't fit in a byte, these get
>> crippled by XMLTokenizer:
>>   buffer.put((byte)c);
>>
>> I'll be opening a JIRA for that.
>> Any ideas how to properly fix this the best way?
>
> I'll have a look at it tomorrow and see if I can figure something out.
>
> /niklas

Reply via email to