[IC] Add test for lookups flushing
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirICLightTreeJvmCompilerRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirICLightTreeJvmCompilerRunnerTestGenerated.java
index e419539..8859012 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirICLightTreeJvmCompilerRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirICLightTreeJvmCompilerRunnerTestGenerated.java
@@ -627,6 +627,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirJvmCompilerRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirJvmCompilerRunnerTestGenerated.java
index 46fe6f1..ea627c8 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirJvmCompilerRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirJvmCompilerRunnerTestGenerated.java
@@ -627,6 +627,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirLightTreeJvmCompilerRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirLightTreeJvmCompilerRunnerTestGenerated.java
index 47de642..3367d29 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirLightTreeJvmCompilerRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalFirLightTreeJvmCompilerRunnerTestGenerated.java
@@ -627,6 +627,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunnerTestGenerated.java
index f033c1a..8496730 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunnerTestGenerated.java
@@ -631,6 +631,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated.java
index e5e0581..415c6ff 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated.java
@@ -631,6 +631,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsKlibCompilerRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsKlibCompilerRunnerTestGenerated.java
index 5869164..b0af141 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsKlibCompilerRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsKlibCompilerRunnerTestGenerated.java
@@ -596,6 +596,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated.java
index 82a6f42..ec4dd8b 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated.java
@@ -596,6 +596,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJvmCompilerRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJvmCompilerRunnerTestGenerated.java
index 8244851..2264e4d 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJvmCompilerRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJvmCompilerRunnerTestGenerated.java
@@ -632,6 +632,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJvmOldBackendCompilerRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJvmOldBackendCompilerRunnerTestGenerated.java
index 66d1a64..276e237 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJvmOldBackendCompilerRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalJvmOldBackendCompilerRunnerTestGenerated.java
@@ -632,6 +632,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalJvmJpsTestGenerated.java b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalJvmJpsTestGenerated.java
index eb9b12b..e8bfb97 100644
--- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalJvmJpsTestGenerated.java
+++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalJvmJpsTestGenerated.java
@@ -1301,6 +1301,11 @@
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
+ @TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
+ public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
+ }
+
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt
new file mode 100644
index 0000000..4282548
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt
@@ -0,0 +1,4 @@
+data class DatClass(
+ val a: Boolean = false,
+ val b: Int = 1
+)
diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt.new.2 b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt.new.2
new file mode 100644
index 0000000..dbe35fb
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt.new.2
@@ -0,0 +1,3 @@
+data class DatClass(
+ val a: Boolean = false
+)
diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt.new.3 b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt.new.3
new file mode 100644
index 0000000..4282548
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt.new.3
@@ -0,0 +1,4 @@
+data class DatClass(
+ val a: Boolean = false,
+ val b: Int = 1
+)
diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt.new.5 b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt.new.5
new file mode 100644
index 0000000..63368cf
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/DataClass.kt.new.5
@@ -0,0 +1,3 @@
+data class DatClass(
+ val a: Boolean = false,
+)
diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/build.log b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/build.log
new file mode 100644
index 0000000..aad58ef
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/build.log
@@ -0,0 +1,94 @@
+================ Step #1 =================
+
+Cleaning output files:
+ out/production/module/META-INF/module.kotlin_module
+ out/production/module/MainKt.class
+End of files
+Compiling files:
+ src/main.kt
+End of files
+Exit code: OK
+------------------------------------------
+
+================ Step #2 =================
+
+Cleaning output files:
+ out/production/module/DatClass.class
+ out/production/module/META-INF/module.kotlin_module
+End of files
+Compiling files:
+ src/DataClass.kt
+End of files
+After build round. Marked as dirty by Kotlin:
+ src/main.kt
+Exit code: ADDITIONAL_PASS_REQUIRED
+------------------------------------------
+Cleaning output files:
+ out/production/module/META-INF/module.kotlin_module
+ out/production/module/MainKt.class
+End of files
+Compiling files:
+ src/main.kt
+End of files
+Exit code: OK
+------------------------------------------
+
+================ Step #3 =================
+
+Cleaning output files:
+ out/production/module/DatClass.class
+ out/production/module/META-INF/module.kotlin_module
+End of files
+Compiling files:
+ src/DataClass.kt
+End of files
+After build round. Marked as dirty by Kotlin:
+ src/main.kt
+Exit code: ADDITIONAL_PASS_REQUIRED
+------------------------------------------
+Cleaning output files:
+ out/production/module/META-INF/module.kotlin_module
+ out/production/module/MainKt.class
+End of files
+Compiling files:
+ src/main.kt
+End of files
+Exit code: OK
+------------------------------------------
+
+================ Step #4 =================
+
+Cleaning output files:
+ out/production/module/META-INF/module.kotlin_module
+ out/production/module/MainKt.class
+End of files
+Compiling files:
+ src/main.kt
+End of files
+Exit code: OK
+------------------------------------------
+
+================ Step #5 =================
+
+Cleaning output files:
+ out/production/module/DatClass.class
+ out/production/module/META-INF/module.kotlin_module
+End of files
+Compiling files:
+ src/DataClass.kt
+End of files
+After build round. Marked as dirty by Kotlin:
+ src/main.kt
+Exit code: ADDITIONAL_PASS_REQUIRED
+------------------------------------------
+Cleaning output files:
+ out/production/module/META-INF/module.kotlin_module
+ out/production/module/MainKt.class
+End of files
+Compiling files:
+ src/main.kt
+End of files
+Exit code: ABORT
+------------------------------------------
+COMPILATION FAILED
+Cannot find a parameter with this name: b
\ No newline at end of file
diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt
new file mode 100644
index 0000000..b646592
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt
@@ -0,0 +1,6 @@
+fun main(args: Array<String>) {
+ DatClass(
+ a=true,
+ b= 3
+ )
+}
\ No newline at end of file
diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt.new.1 b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt.new.1
new file mode 100644
index 0000000..20bb54a
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt.new.1
@@ -0,0 +1,5 @@
+fun main(args: Array<String>) {
+ DatClass(
+ a=true
+ )
+}
\ No newline at end of file
diff --git a/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt.new.4 b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt.new.4
new file mode 100644
index 0000000..b646592
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/main.kt.new.4
@@ -0,0 +1,6 @@
+fun main(args: Array<String>) {
+ DatClass(
+ a=true,
+ b= 3
+ )
+}
\ No newline at end of file