[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: byte[] v String and related comments (WG last call on the JavaAPI)



At 09:25 PM 3/12/01 -0800, Rob Weltman wrote:
>  It's a little awkward dealing with byte[] in arrays in Java because they are not objects (don't extend Object) as String and Java objects do. Leaving out byte[][] methods was a reflection on usefulness. Is there a reason other than symmetry to include them?

Not that I have.  You're rational for not providing them seems
reasonable.

>> Also, I believe LDAPAttribute(String attrName) description
>> should contain a comment that an attribute with no value
>> can not be transferred by the protocol and any attempt to
>> do so should cause an API error.]
>
>  Is it not legal to pass an attribute with no value in a modification (to remove all values of the attribute)?

If you use Modify/Replace, yes, there may be no values.
I was thinking in terms of Modify/Add which require
that there be at least one value.  Restated, my concern
is that API implementations could knowingly send invalid
PDUs and this seems inappropriate.

Kurt