dev@fi.java.net

Re: AttributesHolder

From: Alan Hudson <giles_at_yumetech.com>
Date: Mon, 23 Oct 2006 16:35:37 -0700

Paul Sandoz wrote:

> Hi Alan,
>
> Sorry, I am defintely confused about the source of the error. What
> threw me off the scent was that i am thinking about just decoding
> rather than encoding.
>
>
> As you say the attributes holder should, when a lexical value is
> required and the underlying data is represented by a built-in encoding
> algorithm, always convert the data to a lexical value.
>
> However, when the underlying data is represented by a registered
> encoding algorithm *and* there is no registered encoding algorithm
> declared then i think an exception should result rather than returning
> null.
>
> And as you also point out when the algorothm data is null an exception
> should be thrown too (since there should be a value present).
>
> Make sense? If so i will fix accordingly.
>
all sounds right to me.