I found an issue with the Mapper in Stratum.

Changing the hasChildren(Node) method to this:

    /**
     * Does the node in question have child nodes?
     *
     * @param node The element to check for children.
     */
    private boolean hasChildren(Node node)
    {
        return !((Element) node).isTextOnly();
    }

Fixes the issue. It was previously

        return (((Element) node).nodeCount() > 1);

Which was failing, as on my machine a single text entry, e.g. 

<jar>velocity-dvsl-0.43.jar</jar>

was being returned as 2 nodes, 'velocity-dvsl-0.43.ja' and 'r'.
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers

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

Reply via email to