Introduced with fix for
(commit ID 16693):
The Method isAddFollowedByRemoveOnSameSCO correctly resets the iterator independently of the "addThenRemove" flag,
but the method isRemoveFollowedByAddOnSameSCO only resets it if the "removeThenAdd" flag is false, causing:
Sorry... tried my best to provide a test case with class B containing a set of another class A,
and then manipulating that set accordingly, but somehow I was unable to provoke this error so far! :/
However, by removing the if clause at line 194 and patching our datanucleus-core-3.2.2.jar, this issue was successfully eliminated.