Closed csattila closed 12 years ago
@csattila : it is not good practice to call .remove() while iterating in a foreach loop in Java. See http://stackoverflow.com/questions/1196586/calling-remove-in-foreach-loop-in-java for details.
Nevertheless, the RETE-level exception seems very much like a bug.
Works for me.
@csattila make sure you have an up-to-date version of EMF-IncQuery (a lot has changed on last Friday) and see if you can still observe this issue. If not, then the ticket should be closed. If you do still observe this exception, please push the version of the test where it occurs (including the instance model and queries if you have modified them as well).
OK, I nailed down the issue to a concurrency bug in ecore's own EContentAdapter, no less. Commited the work-around that seems to resolve this issue.
As a follow-up, I will have to submit a bug report or something to the EMF folks about ECoreUtil.
For the record, this is the upstream bug report:
Ed Merks has responded!
SchoolTest projects: https://github.com/ujhelyiz/EMF-IncQuery-Examples/tree/master/school
When I run this test (delete a Course from the model):
The following exception is encountered: