Project: JDT
Bug 130925 [ltk][refactoring] UndoableOperation2ChangeAdapter
Reported: 2006-03-08 11:14:21 | Status: resolved fixed

I20060307-1315 UndoableOperation2ChangeAdapter does not follow the spec of IUndoableOperation#addContext(IUndoContext context), which makes JDT UI's UndoManagerTests#test9 fail. The current implementation inserts the specified context in a list, regardless whether the context is already there. This violates the contract of IUndoableOperation#addContext which states that the same context object must not be added twice.

Files changed in fix:
org.eclipse.ltk.core.refactoring/src/org/eclipse/ltk/internal/core/refactoring/UndoableOperation2ChangeAdapter.java