Kees Jacobsen wrote:
Which is calling a method from CardImager, which doesn't modify the card in any way.
Do any of you have any insight?
It is not "card" -- it is "cards". You are not allowed to modify the List of cards while you are iterating through it. If you want to modify the list, you are only allowed to do it via the iterator, which you haven't exposed in your code.
Kees Jacobsen wrote:It's also not modifying the list of cards - it's completely independent on input.
Well, something is modifying that list. That error occurs when the list is modified while iteration is taking place -- and that modification can come from your code, or some other code not related to your method call, or thread of execution.
Yes, the problem is, I don't know what and why.
Without any body, the for loop where the stackTrace points to still causes problems.
Doing anything else, like printing the size of the 'cards' array, also causes a ConcurrentModificationException.
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
how do I do my own kindle-like thing - without amazon