Hello,

bindings implementation seems to introduce or reveal a 
bug in ObjectNode:

org.apache.slide.common.ServiceAccessException: 
...
Caused by: java.lang.NegativeArraySizeException
        at org.apache.slide.structure.ObjectNode$UriPath.parent(ObjectNode.java:762)
        at org.apache.slide.structure.ObjectNode.addChildren(ObjectNode.java:544)
        at org.apache.slide.structure.ObjectNode.<init>(ObjectNode.java:151)
        at org.apache.slide.structure.SubjectNode.<init>(SubjectNode.java:102)


UriPath.parent does not check, if the uri describes the root node '/'.
For the root node, "this.tokens.length" is 0, so 
"result.tokens = new String[this.tokens.length - 1]" will fail.

UriPath.parent should probably return null. 

--
Martin Holz     <[EMAIL PROTECTED]>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin     


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to