You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Arthur De Magalhaes (JIRA)" <xe...@xml.apache.org> on 2008/10/30 18:10:44 UTC

[jira] Created: (XERCESJ-1334) Missing calls to LSParserFilter.acceptNode() for elements with same name as root

Missing calls to LSParserFilter.acceptNode() for elements with same name as root
--------------------------------------------------------------------------------

                 Key: XERCESJ-1334
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1334
             Project: Xerces2-J
          Issue Type: Bug
          Components: DOM (Level 3 Core)
    Affects Versions: 2.9.1
         Environment: This bug is independent from OS / hardware / platform.
            Reporter: Arthur De Magalhaes
            Assignee: Michael Glavassevich
            Priority: Minor


This bug was originally reported by Armageddon Brown, from IBM.

The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.

For these elements, a call to acceptNode() will NOT be made (which is incorrect).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (XERCESJ-1334) Missing calls to LSParserFilter.acceptNode() for elements with same name as root

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1334.
-------------------------------------------

    Resolution: Fixed

Arthur, thanks for the patch.  I've committed your fix to SVN.

> Missing calls to LSParserFilter.acceptNode() for elements with same name as root
> --------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1334
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1334
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>         Environment: This bug is independent from OS / hardware / platform.
>            Reporter: Arthur De Magalhaes
>            Assignee: Michael Glavassevich
>            Priority: Minor
>         Attachments: DOM_LSFilter_Patch.txt, Tester4.java
>
>
> The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.
> For these elements, a call to acceptNode() will NOT be made (which is incorrect).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (XERCESJ-1334) Missing calls to LSParserFilter.acceptNode() for elements with same name as root

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-1334:
------------------------------------------

    Component/s:     (was: DOM (Level 3 Core))
                 DOM (Level 3 Load & Save)

> Missing calls to LSParserFilter.acceptNode() for elements with same name as root
> --------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1334
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1334
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Load & Save)
>    Affects Versions: 2.9.1
>         Environment: This bug is independent from OS / hardware / platform.
>            Reporter: Arthur De Magalhaes
>            Assignee: Michael Glavassevich
>            Priority: Minor
>         Attachments: DOM_LSFilter_Patch.txt, Tester4.java
>
>
> The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.
> For these elements, a call to acceptNode() will NOT be made (which is incorrect).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (XERCESJ-1334) Missing calls to LSParserFilter.acceptNode() for elements with same name as root

Posted by "Arthur De Magalhaes (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arthur De Magalhaes updated XERCESJ-1334:
-----------------------------------------

    Attachment: DOM_LSFilter_Patch.txt

The original code kept a reference to the root's QName, and that is why we failed to report acceptNode for elements that had the same name was the root.

This patch changes this behaviour, so that we hold a reference to the root Node itself.  

> Missing calls to LSParserFilter.acceptNode() for elements with same name as root
> --------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1334
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1334
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>         Environment: This bug is independent from OS / hardware / platform.
>            Reporter: Arthur De Magalhaes
>            Assignee: Michael Glavassevich
>            Priority: Minor
>         Attachments: DOM_LSFilter_Patch.txt
>
>
> This bug was originally reported by Armageddon Brown, from IBM.
> The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.
> For these elements, a call to acceptNode() will NOT be made (which is incorrect).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (XERCESJ-1334) Missing calls to LSParserFilter.acceptNode() for elements with same name as root

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-1334:
------------------------------------------

    Fix Version/s: 2.10.0

> Missing calls to LSParserFilter.acceptNode() for elements with same name as root
> --------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1334
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1334
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Load & Save)
>    Affects Versions: 2.9.1
>         Environment: This bug is independent from OS / hardware / platform.
>            Reporter: Arthur De Magalhaes
>            Assignee: Michael Glavassevich
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: DOM_LSFilter_Patch.txt, Tester4.java
>
>
> The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.
> For these elements, a call to acceptNode() will NOT be made (which is incorrect).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (XERCESJ-1334) Missing calls to LSParserFilter.acceptNode() for elements with same name as root

Posted by "Arthur De Magalhaes (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arthur De Magalhaes updated XERCESJ-1334:
-----------------------------------------

    Description: 
The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.

For these elements, a call to acceptNode() will NOT be made (which is incorrect).

  was:
This bug was originally reported by Armageddon Brown, from IBM.

The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.

For these elements, a call to acceptNode() will NOT be made (which is incorrect).


> Missing calls to LSParserFilter.acceptNode() for elements with same name as root
> --------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1334
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1334
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>         Environment: This bug is independent from OS / hardware / platform.
>            Reporter: Arthur De Magalhaes
>            Assignee: Michael Glavassevich
>            Priority: Minor
>         Attachments: DOM_LSFilter_Patch.txt, Tester4.java
>
>
> The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.
> For these elements, a call to acceptNode() will NOT be made (which is incorrect).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (XERCESJ-1334) Missing calls to LSParserFilter.acceptNode() for elements with same name as root

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644396#action_12644396 ] 

Michael Glavassevich commented on XERCESJ-1334:
-----------------------------------------------

See http://svn.apache.org/viewvc?view=rev&revision=709530.

> Missing calls to LSParserFilter.acceptNode() for elements with same name as root
> --------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1334
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1334
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>         Environment: This bug is independent from OS / hardware / platform.
>            Reporter: Arthur De Magalhaes
>            Assignee: Michael Glavassevich
>            Priority: Minor
>         Attachments: DOM_LSFilter_Patch.txt, Tester4.java
>
>
> The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.
> For these elements, a call to acceptNode() will NOT be made (which is incorrect).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (XERCESJ-1334) Missing calls to LSParserFilter.acceptNode() for elements with same name as root

Posted by "Arthur De Magalhaes (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arthur De Magalhaes updated XERCESJ-1334:
-----------------------------------------

    Attachment: Tester4.java

This java class demonstrates the problem.

> Missing calls to LSParserFilter.acceptNode() for elements with same name as root
> --------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1334
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1334
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>         Environment: This bug is independent from OS / hardware / platform.
>            Reporter: Arthur De Magalhaes
>            Assignee: Michael Glavassevich
>            Priority: Minor
>         Attachments: DOM_LSFilter_Patch.txt, Tester4.java
>
>
> This bug was originally reported by Armageddon Brown, from IBM.
> The problem occurs when we use a LSParser (with a LSParserFilter) to go over an instance that contains element names that match the root element name.
> For these elements, a call to acceptNode() will NOT be made (which is incorrect).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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