On Tue, Mar 16, 2010 at 12:56, Gadbury <[email protected]> wrote: > I have put in a piece of code that appends "[1]" to the path constraint if > pathNode.getIndex() == 1, but this seems nasty. Shouldn't getPath() for the > first provider return ../provider[1] and not ../provider ? Is this a bug?
No. AFAIK the spec simply does not define a specific behavior and Jackrabbit is optimized for the non-SNS case. Appending [1] in the case of SNS would require to look for existing SNS nodes, which can be quite costly, especially for an often-used method like getPath(). Regards, Alex -- Alexander Klimetschek [email protected]
