Description
Found small bug in the axis2-kernel ParameterIncludeImpl.java.
The "parameters.put(param.getName(), param)" is always performed twice.
It looks like a copy/paste mistake when moving the "put" into the try block, the original line was not removed and remains outside of the try block. In the worst-case scenario, the ConcurrentModificationException would not be caught as expected.
public void addParameter(Parameter param) { if (param != null) { synchronized (parameters) { parameters.put(param.getName(), param); try { parameters.put(param.getName(), param); } catch (ConcurrentModificationException cme) { ... } }