Fixed package proto for circular dependencies. Case when package is present in different modules which depend on each other. We should generate separate package facades for this case.

Original commit: 7de531fe09
This commit is contained in:
Evgeny Gerashchenko
2015-05-25 18:06:49 +03:00
parent 4b08b13289
commit daa16c768b
6 changed files with 36 additions and 0 deletions
@@ -43,6 +43,12 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
doTest(fileName);
}
@TestMetadata("circularDependencySamePackageUnchanged")
public void testCircularDependencySamePackageUnchanged() throws Exception {
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/multiModule/circularDependencySamePackageUnchanged/");
doTest(fileName);
}
@TestMetadata("circularDependencyTopLevelFunctions")
public void testCircularDependencyTopLevelFunctions() throws Exception {
String fileName = JetTestUtils.navigationMetadata("jps-plugin/testData/incremental/multiModule/circularDependencyTopLevelFunctions/");
@@ -0,0 +1,7 @@
Cleaning output files:
out/production/module1/test/TestPackage$module1_a$*.class
out/production/module1/test/TestPackage.class
End of files
Compiling files:
module1/src/module1_a.kt
End of files
@@ -0,0 +1,2 @@
module1->module2
module2->module1
@@ -0,0 +1,7 @@
package test
fun a() {
}
val a = ""
@@ -0,0 +1,7 @@
package test
fun a() {
}
val a = ""
@@ -0,0 +1,7 @@
package test
fun b() {
}
var b = b()