On Thu, May 17, 2012 at 2:21 AM, César Álvarez Núñez <[email protected]> wrote: > Hi All, > > When I create a node with null data, Stat.dataLength is 0. > When I create a node with byte[0] data, Stat.dataLength is 0. > > I think that in the first case dataLength should return -1 instead of 0. > > Which is your opinion? I will create a ticket and try to fix it if you > agree.
The current API is such that we treat the length of a null and an empty string both as 0. Regardless, what you are suggesting would change the api in a non-backward compatible way, not something we consider outside of a major version upgrade. Patrick
