org.apache.axis.client.HandlerRegistryImpl.getHandlerChain(QName portName) 
create an ArrayList if the HandlerChain doesn't exists instead of an 
HandlerChainImpl
----------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-2003
                 URL: https://issues.apache.org/jira/browse/AXIS2-2003
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: client-api
    Affects Versions: nightly
         Environment: All
            Reporter: Fabien Carrion
            Priority: Trivial
             Fix For: nightly


When somebody use the interface javax.xml.rpc.handler.HandlerRegistry to get 
the HandlerChain for a given Service. If there is no HandlerChain which already 
exists, the implementation create an ArrayList, and it should create an 
HandlerChainImpl.

Code : axis-1_4/src/org/apache/axis/client/Service.java
Line : 869

Actual Code :
        public List getHandlerChain(QName portName) {
            // namespace is not significant, so use local part directly
            String key = portName.getLocalPart();
            List list = (List) map.get(key);
            if (list == null) {
                list = new java.util.ArrayList();
                setHandlerChain(portName, list);
            }
            return list;
        }

Should be :
        public List getHandlerChain(QName portName) {
            // namespace is not significant, so use local part directly
            String key = portName.getLocalPart();
            List list = (List) map.get(key);
            if (list == null) {
                HandlerInfoChainFactory Factory = new HandlerInfoChainFactory();
                list = Factory.createHandlerChain();
                setHandlerChain(portName, list);
            }
            return list;
        }


Cheers'

Fabien Carrion

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

        

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

Reply via email to