HF RL Explorer

Problem: StackOverflowError when mocking ArrayList after mockSingleton

Problem: StackOverflowError when mocking ArrayList after mockSingleton: a task in LegoFlow-SWE (Harbor dataset). Symptom: A StackOverflowError is thrown at runtime when mockSingleton is used and then a class extending AbstractList (such as ArrayList ) is mocked and any method (e.g., clear() ) is…

The task

**Symptom:** A `StackOverflowError` is thrown at runtime when `mockSingleton` is used and then a class extending `AbstractList` (such as `ArrayList`) is mocked and any method (e.g., `clear()`) is called on the mocked instance.

Part of Lego-X/LegoFlow-SWE.