qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Ritchie" <ritch...@apache.org>
Subject Re: XML longstr mapping
Date Wed, 20 Dec 2006 15:48:49 GMT
A longstr needs to be capable of handling 2-byte characters while the
shorstr only deals with ASCII values. I thought String was an ASCII
string only if that is the case then longstr will need to stay as a

On 20/12/06, Kim van der Riet <kim.vdriet@redhat.com> wrote:
> I am working on integrating the new code generator into the Java
> implementation.
> I notice that in the old XSL-based generator, longstr is mapped to java
> type byte[] while shortstr is mapped to String. In the new generator,
> both shortstr and longstr are mapped to String. I also notice that in
> the 0-8 XML, it is security-related challenge/response fields and
> connection.start mechanisms/locales that use the longstr type.
> Is it correct to keep the mapping in the new generator of longstr to
> String, or should it be kept as byte[]? I had anticipated that longstr
> may find wider usage besides security tokens.
> I had thought we had discussed this and agreed on the mapping, but I
> want to make sure.
> Kim

Martin Ritchie

View raw message