[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    [jira] [Created] (AXIOM-385) DOOM class hierarchy is inconsistent
From:       "Andreas Veithen (JIRA)" <jira () apache ! org>
Date:       2011-08-30 17:45:42
Message-ID: 923829559.8521.1314726342010.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]

DOOM class hierarchy is inconsistent with the Axiom interface hierarchy
-----------------------------------------------------------------------

                 Key: AXIOM-385
                 URL: https://issues.apache.org/jira/browse/AXIOM-385
             Project: Axiom
          Issue Type: Bug
          Components: DOOM
    Affects Versions: 1.2.12
            Reporter: Andreas Veithen


The OMDocument interface extends OMContainer, but not OMNode. On the other hand, \
DocumentImpl implements both OMDocument and OMNode (because it extends NodeImpl which \
implements OMNode).

That causes problems with code such as this (which is perfectly consistent with the \
Axiom API and which works correctly with the LLOM implementation):

if (item instanceof OMNode) {
    ...
    OMContainer parent = ((OMNode)item).getParent();
    ...
}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic