[
https://issues.apache.org/activemq/browse/CAMEL-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-1912:
-------------------------------
Fix Version/s: 2.1.0
Thanks for contributing. Will get it in the next release after 2.0 as 2.0 is
currently being build.
I would suggest to use a Collections.unmodifiedList wrapper instead of copying
to new array in the first 1-2 methods.
And the code in the remove could use generics instead of the type cast and it
should comply with the checkstyle
See *building with checkstyle*
http://camel.apache.org/building.html
> DefaultCamelContext.removeEndpoints() fails due to
> ConcurrentModificationException
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1912
> URL: https://issues.apache.org/activemq/browse/CAMEL-1912
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.5.0, 1.6.0, 2.0-M1, 1.6.1, 1.6.2, 2.0-M2, 2.0-M3, 2.0.0
> Reporter: Eric Haszlakiewicz
> Priority: Minor
> Fix For: 2.1.0
>
> Attachments: DefaultCamelContext.java.diff
>
>
> The removeEndpoints() method iterates over the endpoints map, and attempts to
> remove entries inside of the iterator loop. This causes near immediate
> ConcurrentModificationException's.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.