jmockit/jmockit1

Concurrent mod exception on restore classes

HenningL opened this issue · 0 comments

Please provide the following information:

  • Version of JMockit that was used: 1.49

  • Description of the problem or enhancement request:
    java.util.ConcurrentModificationException
    at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1511)
    at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1534)
    at mockit.internal.state.MockFixture.restoreAndRemoveTransformedClasses(MockFixture.java:270)
    at mockit.internal.state.MockFixture.restoreTransformedClasses(MockFixture.java:254)
    at mockit.internal.state.SavePoint.rollback(SavePoint.java:37)
    at mockit.integration.TestRunnerDecorator.rollbackForTestClass(TestRunnerDecorator.java:104)
    at mockit.integration.TestRunnerDecorator.cleanUpMocks(TestRunnerDecorator.java:94)
    at mockit.integration.TestRunnerDecorator.cleanUpAllMocks(TestRunnerDecorator.java:86)
    at mockit.integration.testng.TestNGRunnerDecorator.onExecutionFinish(TestNGRunnerDecorator.java:263)
    at org.testng.TestNG.runExecutionListeners(TestNG.java:1083)
    at org.testng.TestNG.run(TestNG.java:1045)

jdk-11