void () { String srcRoot = PathUtil.getParentPath(createFile("src/A.java", "class A{ { new B(); } }")); String b = createFile("depSrc/B.java", "public class B{}"); JpsModule main = addModule("main", srcRoot); JpsModule dep = addModule("dep", PathUtil.getParentPath(b)); main.getDependenciesList().addModuleDependency(dep); rebuildAllModules(); change(b, "public class B{ public B(int i){} }"); doBuild(CompileScopeTestBuilder.recompile().module(dep)).assertSuccessful(); doBuild(CompileScopeTestBuilder.make().module(main)).assertFailed(); }