org.apache.axis.client.HandlerRegistryImpl.getHandlerChain(QName portName)
create an ArrayList if the HandlerChain doesn't exists instead of an
HandlerChainImpl
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: AXIS-2615
URL: https://issues.apache.org/jira/browse/AXIS-2615
Project: Apache Axis
Issue Type: Bug
Components: Basic Architecture
Affects Versions: current (nightly)
Environment: Windows XP, Tomcat 6.0
Reporter: Fabien Carrion
Priority: Trivial
Fix For: current (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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]