diff --git a/java/compiler/impl/src/com/intellij/compiler/CompilerConfigurationImpl.java b/java/compiler/impl/src/com/intellij/compiler/CompilerConfigurationImpl.java index 3c0dfa750cec..81f9019d8619 100644 --- a/java/compiler/impl/src/com/intellij/compiler/CompilerConfigurationImpl.java +++ b/java/compiler/impl/src/com/intellij/compiler/CompilerConfigurationImpl.java @@ -177,9 +177,11 @@ public class CompilerConfigurationImpl extends CompilerConfiguration implements else { previous = myModuleBytecodeTarget.put(module.getName(), level); } - if (!Comparing.equal(previous, level)) { - //final Project project = module.getProject(); // todo[jeka] so what? - } + // todo: mark module as dirty in order to rebuild it completely with the new target level + //if (!Comparing.equal(previous, level)) { + // final Project project = module.getProject(); + // + //} } @Override diff --git a/java/compiler/impl/src/com/intellij/compiler/server/BuildManager.java b/java/compiler/impl/src/com/intellij/compiler/server/BuildManager.java index beb1c594cbc3..9b4ea0d48831 100644 --- a/java/compiler/impl/src/com/intellij/compiler/server/BuildManager.java +++ b/java/compiler/impl/src/com/intellij/compiler/server/BuildManager.java @@ -53,7 +53,10 @@ import com.intellij.openapi.util.SystemInfo; import com.intellij.openapi.util.io.FileUtil; import com.intellij.openapi.util.registry.Registry; import com.intellij.openapi.util.text.StringUtil; -import com.intellij.openapi.vfs.*; +import com.intellij.openapi.vfs.LocalFileSystem; +import com.intellij.openapi.vfs.SavingRequestor; +import com.intellij.openapi.vfs.VirtualFile; +import com.intellij.openapi.vfs.VirtualFileManager; import com.intellij.openapi.vfs.encoding.EncodingManager; import com.intellij.openapi.vfs.newvfs.BulkFileListener; import com.intellij.openapi.vfs.newvfs.events.VFileEvent; @@ -276,6 +279,11 @@ public class BuildManager implements ApplicationComponent{ } catch (RejectedExecutionException ignored) { // we were shut down + myAutoMakeInProgress.set(false); + } + catch (Throwable e) { + myAutoMakeInProgress.set(false); + throw new RuntimeException(e); } } else {