clear positions cache on hotswap

This commit is contained in:
Egor.Ushakov
2016-08-12 12:38:27 +03:00
parent 3ebd13b591
commit 9af4afc997
2 changed files with 6 additions and 0 deletions
@@ -54,6 +54,10 @@ public class CompoundPositionManager extends PositionManagerEx implements MultiR
public void appendPositionManager(PositionManager manager) {
myPositionManagers.remove(manager);
myPositionManagers.add(0, manager);
clearCache();
}
public void clearCache() {
mySourcePositionCache.clear();
}
@@ -168,6 +168,8 @@ class ReloadClassesWorker {
processException(e);
}
debugProcess.getPositionManager().clearCache();
DebuggerContextImpl context = myDebuggerSession.getContextManager().getContext();
SuspendContextImpl suspendContext = context.getSuspendContext();
if (suspendContext != null) {