KT-55393
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 ec20103..b2ca397 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
@@ -1353,6 +1353,16 @@
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty/");
}
+ @TestMetadata("changeSyntheticProperty2")
+ public void testChangeSyntheticProperty2() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/");
+ }
+
+ @TestMetadata("changeSyntheticProperty3")
+ public void testChangeSyntheticProperty3() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/");
+ }
+
@TestMetadata("constantChanged")
public void testConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged/");
@@ -1581,6 +1591,32 @@
}
}
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty2 extends AbstractIncrementalFirICLightTreeJvmCompilerRunnerTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty2() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2"), Pattern.compile("^([^\\.]+)$"), Pattern.compile("(^classToPackageFacade)"), TargetBackend.JVM_IR, true);
+ }
+ }
+
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty3 extends AbstractIncrementalFirICLightTreeJvmCompilerRunnerTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty3() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3"), Pattern.compile("^([^\\.]+)$"), Pattern.compile("(^classToPackageFacade)"), TargetBackend.JVM_IR, true);
+ }
+ }
+
@TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
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 bc5cffa..1b94443 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
@@ -1353,6 +1353,16 @@
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty/");
}
+ @TestMetadata("changeSyntheticProperty2")
+ public void testChangeSyntheticProperty2() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/");
+ }
+
+ @TestMetadata("changeSyntheticProperty3")
+ public void testChangeSyntheticProperty3() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/");
+ }
+
@TestMetadata("constantChanged")
public void testConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged/");
@@ -1581,6 +1591,32 @@
}
}
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty2 extends AbstractIncrementalFirLightTreeJvmCompilerRunnerTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty2() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty3 extends AbstractIncrementalFirLightTreeJvmCompilerRunnerTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty3() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
@TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalK1JvmCompilerRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalK1JvmCompilerRunnerTestGenerated.java
index 030e44c..80e1d76 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalK1JvmCompilerRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalK1JvmCompilerRunnerTestGenerated.java
@@ -1353,6 +1353,16 @@
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty/");
}
+ @TestMetadata("changeSyntheticProperty2")
+ public void testChangeSyntheticProperty2() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/");
+ }
+
+ @TestMetadata("changeSyntheticProperty3")
+ public void testChangeSyntheticProperty3() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/");
+ }
+
@TestMetadata("constantChanged")
public void testConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged/");
@@ -1581,6 +1591,32 @@
}
}
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty2 extends AbstractIncrementalK1JvmCompilerRunnerTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty2() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2"), Pattern.compile("^([^\\.]+)$"), Pattern.compile("((^javaToKotlin)|(^javaToKotlinAndBack)|(^kotlinToJava)|(^packageFileAdded)|(^changeNotUsedSignature))"), TargetBackend.JVM_IR, true);
+ }
+ }
+
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty3 extends AbstractIncrementalK1JvmCompilerRunnerTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty3() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3"), Pattern.compile("^([^\\.]+)$"), Pattern.compile("((^javaToKotlin)|(^javaToKotlinAndBack)|(^kotlinToJava)|(^packageFileAdded)|(^changeNotUsedSignature))"), TargetBackend.JVM_IR, true);
+ }
+ }
+
@TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
diff --git a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalK2JvmCompilerRunnerTestGenerated.java b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalK2JvmCompilerRunnerTestGenerated.java
index 675cfea..12d1974 100644
--- a/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalK2JvmCompilerRunnerTestGenerated.java
+++ b/compiler/incremental-compilation-impl/test/org/jetbrains/kotlin/incremental/IncrementalK2JvmCompilerRunnerTestGenerated.java
@@ -1353,6 +1353,16 @@
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty/");
}
+ @TestMetadata("changeSyntheticProperty2")
+ public void testChangeSyntheticProperty2() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/");
+ }
+
+ @TestMetadata("changeSyntheticProperty3")
+ public void testChangeSyntheticProperty3() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/");
+ }
+
@TestMetadata("constantChanged")
public void testConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged/");
@@ -1581,6 +1591,32 @@
}
}
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty2 extends AbstractIncrementalK2JvmCompilerRunnerTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty2() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty3 extends AbstractIncrementalK2JvmCompilerRunnerTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty3() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
@TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK1JvmJpsTestGenerated.java b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK1JvmJpsTestGenerated.java
index 3282712..ada1dcf 100644
--- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK1JvmJpsTestGenerated.java
+++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK1JvmJpsTestGenerated.java
@@ -1541,6 +1541,16 @@
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty/");
}
+ @TestMetadata("changeSyntheticProperty2")
+ public void testChangeSyntheticProperty2() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/");
+ }
+
+ @TestMetadata("changeSyntheticProperty3")
+ public void testChangeSyntheticProperty3() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/");
+ }
+
@TestMetadata("constantChanged")
public void testConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged/");
@@ -1769,6 +1779,32 @@
}
}
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty2 extends AbstractIncrementalK1JvmJpsTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty2() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty3 extends AbstractIncrementalK1JvmJpsTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty3() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
@TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2FirICLightTreeJvmJpsTestGenerated.java b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2FirICLightTreeJvmJpsTestGenerated.java
index 8183c87..fa6b482 100644
--- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2FirICLightTreeJvmJpsTestGenerated.java
+++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2FirICLightTreeJvmJpsTestGenerated.java
@@ -1363,6 +1363,16 @@
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty/");
}
+ @TestMetadata("changeSyntheticProperty2")
+ public void testChangeSyntheticProperty2() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/");
+ }
+
+ @TestMetadata("changeSyntheticProperty3")
+ public void testChangeSyntheticProperty3() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/");
+ }
+
@TestMetadata("constantChanged")
public void testConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged/");
@@ -1591,6 +1601,32 @@
}
}
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty2 extends AbstractIncrementalK2FirICLightTreeJvmJpsTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty2() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty3 extends AbstractIncrementalK2FirICLightTreeJvmJpsTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty3() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
@TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2JvmJpsTestGenerated.java b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2JvmJpsTestGenerated.java
index 12a32b5..8bfd4f4 100644
--- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2JvmJpsTestGenerated.java
+++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2JvmJpsTestGenerated.java
@@ -1363,6 +1363,16 @@
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty/");
}
+ @TestMetadata("changeSyntheticProperty2")
+ public void testChangeSyntheticProperty2() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/");
+ }
+
+ @TestMetadata("changeSyntheticProperty3")
+ public void testChangeSyntheticProperty3() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/");
+ }
+
@TestMetadata("constantChanged")
public void testConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged/");
@@ -1591,6 +1601,32 @@
}
}
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty2 extends AbstractIncrementalK2JvmJpsTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty2() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty3 extends AbstractIncrementalK2JvmJpsTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty3() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
@TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
diff --git a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2LightTreeJvmJpsTestGenerated.java b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2LightTreeJvmJpsTestGenerated.java
index a5cbd3b..d92d0e8 100644
--- a/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2LightTreeJvmJpsTestGenerated.java
+++ b/jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/IncrementalK2LightTreeJvmJpsTestGenerated.java
@@ -1363,6 +1363,16 @@
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty/");
}
+ @TestMetadata("changeSyntheticProperty2")
+ public void testChangeSyntheticProperty2() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/");
+ }
+
+ @TestMetadata("changeSyntheticProperty3")
+ public void testChangeSyntheticProperty3() throws Exception {
+ runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/");
+ }
+
@TestMetadata("constantChanged")
public void testConstantChanged() throws Exception {
runTest("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged/");
@@ -1591,6 +1601,32 @@
}
}
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty2 extends AbstractIncrementalK2LightTreeJvmJpsTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty2() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
+ @TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class ChangeSyntheticProperty3 extends AbstractIncrementalK2LightTreeJvmJpsTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInChangeSyntheticProperty3() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
+ }
+ }
+
@TestMetadata("jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/constantChanged")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
diff --git a/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/Jaba.java b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/Jaba.java
new file mode 100644
index 0000000..1588285
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/Jaba.java
@@ -0,0 +1,7 @@
+public class Jaba {
+ private boolean foo = true; // Change visibility to `public`
+
+ public boolean getFoo() {
+ return false;
+ }
+}
\ No newline at end of file
diff --git a/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/Jaba.java.new b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/Jaba.java.new
new file mode 100644
index 0000000..5953515
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/Jaba.java.new
@@ -0,0 +1,7 @@
+public class Jaba {
+ public boolean foo = true; // Change visibility to `public`
+
+ public boolean getFoo() {
+ return false;
+ }
+}
\ No newline at end of file
diff --git a/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/app.kt b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/app.kt
new file mode 100644
index 0000000..e5b4ca4
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/app.kt
@@ -0,0 +1,5 @@
+fun main() {
+ println(Jaba().foo)
+}
+
+//KT-55393
\ No newline at end of file
diff --git a/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/build.log b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/build.log
new file mode 100644
index 0000000..ac1170a
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty2/build.log
@@ -0,0 +1,24 @@
+================ Step #1 =================
+
+Cleaning output files:
+ out/production/module/Jaba.class
+End of files
+Exit code: NOTHING_DONE
+------------------------------------------
+Compiling files:
+ src/Jaba.java
+End of files
+Cleaning output files:
+ out/production/module/META-INF/module.kotlin_module
+ out/production/module/AppKt.class
+End of files
+Compiling files:
+ src/app.kt
+End of files
+Exit code: ABORT
+------------------------------------------
+COMPILATION FAILED
+Kotlin: Overload resolution ambiguity:
+public final var isFoo: Boolean defined in Jaba
+public open fun isFoo(): Boolean defined in Jaba
+
diff --git a/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/Jaba.java b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/Jaba.java
new file mode 100644
index 0000000..1588285
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/Jaba.java
@@ -0,0 +1,7 @@
+public class Jaba {
+ private boolean foo = true; // Change visibility to `public`
+
+ public boolean getFoo() {
+ return false;
+ }
+}
\ No newline at end of file
diff --git a/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/Jaba.java.new b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/Jaba.java.new
new file mode 100644
index 0000000..5953515
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/Jaba.java.new
@@ -0,0 +1,7 @@
+public class Jaba {
+ public boolean foo = true; // Change visibility to `public`
+
+ public boolean getFoo() {
+ return false;
+ }
+}
\ No newline at end of file
diff --git a/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/app.kt b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/app.kt
new file mode 100644
index 0000000..29a25a9
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/app.kt
@@ -0,0 +1,6 @@
+fun main() {
+ val call = Jaba::foo
+ println(call.invoke(Jaba()))
+}
+
+//KT-55393
\ No newline at end of file
diff --git a/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/build.log b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/build.log
new file mode 100644
index 0000000..ac1170a
--- /dev/null
+++ b/jps/jps-plugin/testData/incremental/withJava/javaUsedInKotlin/changeSyntheticProperty3/build.log
@@ -0,0 +1,24 @@
+================ Step #1 =================
+
+Cleaning output files:
+ out/production/module/Jaba.class
+End of files
+Exit code: NOTHING_DONE
+------------------------------------------
+Compiling files:
+ src/Jaba.java
+End of files
+Cleaning output files:
+ out/production/module/META-INF/module.kotlin_module
+ out/production/module/AppKt.class
+End of files
+Compiling files:
+ src/app.kt
+End of files
+Exit code: ABORT
+------------------------------------------
+COMPILATION FAILED
+Kotlin: Overload resolution ambiguity:
+public final var isFoo: Boolean defined in Jaba
+public open fun isFoo(): Boolean defined in Jaba
+