From 1b9a88ee8cc7f231ab44f62306bc49cf7b5e3ed7 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Mon, 2 Oct 2017 21:11:58 +0300 Subject: [PATCH] fixed hotswap reloading 0 classes in some cases --- .../debugger/impl/ReloadClassesWorker.java | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/impl/ReloadClassesWorker.java b/java/debugger/impl/src/com/intellij/debugger/impl/ReloadClassesWorker.java index 8f5f1c6b3729..11aa1cbb2379 100644 --- a/java/debugger/impl/src/com/intellij/debugger/impl/ReloadClassesWorker.java +++ b/java/debugger/impl/src/com/intellij/debugger/impl/ReloadClassesWorker.java @@ -1,18 +1,4 @@ -/* - * Copyright 2000-2017 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.impl; import com.intellij.debugger.DebuggerBundle; @@ -268,6 +254,7 @@ class ReloadClassesWorker { public RedefineProcessor(VirtualMachineProxyImpl virtualMachineProxy) { myVirtualMachineProxy = virtualMachineProxy; + myVirtualMachineProxy.clearCaches(); // to have up-to-date classByName cache } public void processClass(String qualifiedName, File file) throws Throwable {