java.util.ConcurrentModificationException in 
org.apache.axis2.jaxbri.JaxbSchemaGenerator
----------------------------------------------------------------------------------------

                 Key: AXIS2-3600
                 URL: https://issues.apache.org/jira/browse/AXIS2-3600
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: nightly
            Reporter: alex wu


 org.apache.axis2.jaxbri.JaxbSchemaGenerator :

protected static JAXBContext createJAXBContext(Set<Class<?>> classes,
                                                   String defaultNs) throws 
JAXBException {
        Iterator it = classes.iterator();
        String className = "";
        Object remoteExceptionObject;
        while (it.hasNext()) {
            remoteExceptionObject = it.next();
            className = remoteExceptionObject.toString();
            if (!("".equals(className)) && 
className.contains("RemoteException")) {
                classes.remove(remoteExceptionObject);
            }
        }

 classes.remove(remoteExceptionObject)   // wrong can throw 
ConcurrentModificationException 
 it.remove() //right



-- 
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]

Reply via email to