You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Andres Cuevas Alvarez (JIRA)" <xm...@xml.apache.org> on 2006/08/19 05:58:14 UTC

[jira] Commented: (XMLBEANS-284) The method Cursor.toNextSibling(String) doesn't use the argument.

    [ http://issues.apache.org/jira/browse/XMLBEANS-284?page=comments#action_12429178 ] 
            
Andres Cuevas Alvarez commented on XMLBEANS-284:
------------------------------------------------

I uploaded the class org.apache.xmlbeans.impl.store.Cursor

The change made to the class solves this issue.

Old code:

public boolean _toNextSibling(String name) {
    return Locale.toNextSiblingElement(_cur);
}

New Code:

public boolean _toNextSibling(String name) {
    return _toNextSibling(new QName(name));
}

> The method Cursor.toNextSibling(String) doesn't use the argument.
> -----------------------------------------------------------------
>
>                 Key: XMLBEANS-284
>                 URL: http://issues.apache.org/jira/browse/XMLBEANS-284
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Cursor
>    Affects Versions: Version 2, Version 2.1, Version 2.2
>         Environment: Windows 2000, jdk 1.4.2_08
>            Reporter: Andres Cuevas Alvarez
>            Priority: Critical
>             Fix For: Version 1.0.4
>
>         Attachments: Cursor.java, XmlBeansTest.java, XmlBeansTest2.java, XmlBeansTest2.java
>
>
> I found a bug in apache xmlbeans 2.2.0.
>  
> Find attached two classes that show the problem.
>  
> If you use:
> xbean.jar (xmlbeans 2.2.0)
> xbean_xpath.jar (xmlbeans 2.2.0)
> jsr173_1.0_api.jar (included in xmlbeans 2.2.0)
>  
> You will get a 'WHAT!!!!' message.
>  
> If you use:
> xbean.jar (xmlbeans 1.0.4)
> xbean_xpath.jar (xmlbeans 1.0.4)
>  
> You will get a 'This is what I'm expecting' message.
> The problem is that the method Cursor.toNextSibling(String) doesn't use the argument.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org