crooy/ApiDesignCursus — Issue #4: ConcurrentModificationException (invalid foreach iterator)
Author: FreekMank
Created: 2011-11-30 15:30:25+00:00
State: open
Labels: Groep2

Adding the same exchange rate twice throws a java.util.ConcurrentModificationException
(because the foreach iterator is invalidated because an element is removed)

Calculator calc = Calculator.create();
calc.addExchangeRate(ExchangeRate.create("CZK", "USD", 0, 12));
calc.addExchangeRate(ExchangeRate.create("CZK", "USD", 17, 1));