Added test with constant in class object.
This commit is contained in:
@@ -66,6 +66,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
||||
doTest("jps-plugin/testData/incremental/classInlineFunctionUnchanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectConstantChanged")
|
||||
public void testClassObjectConstantChanged() throws Exception {
|
||||
doTest("jps-plugin/testData/incremental/classObjectConstantChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("classRecreated")
|
||||
public void testClassRecreated() throws Exception {
|
||||
doTest("jps-plugin/testData/incremental/classRecreated/");
|
||||
@@ -86,11 +91,6 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
||||
doTest("jps-plugin/testData/incremental/constantUnchanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("constantValue")
|
||||
public void testConstantValue() throws Exception {
|
||||
doTest("jps-plugin/testData/incremental/constantValue/");
|
||||
}
|
||||
|
||||
@TestMetadata("dependencyClassReferenced")
|
||||
public void testDependencyClassReferenced() throws Exception {
|
||||
doTest("jps-plugin/testData/incremental/dependencyClassReferenced/");
|
||||
@@ -121,6 +121,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
||||
doTest("jps-plugin/testData/incremental/ourClassReferenced/");
|
||||
}
|
||||
|
||||
@TestMetadata("packageConstantChanged")
|
||||
public void testPackageConstantChanged() throws Exception {
|
||||
doTest("jps-plugin/testData/incremental/packageConstantChanged/");
|
||||
}
|
||||
|
||||
@TestMetadata("packageFileAdded")
|
||||
public void testPackageFileAdded() throws Exception {
|
||||
doTest("jps-plugin/testData/incremental/packageFileAdded/");
|
||||
@@ -150,7 +155,7 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
|
||||
public void testPackageInlineFunctionAccessingField() throws Exception {
|
||||
doTest("jps-plugin/testData/incremental/packageInlineFunctionAccessingField/");
|
||||
}
|
||||
|
||||
|
||||
@TestMetadata("packageInlineFunctionChanged")
|
||||
public void testPackageInlineFunctionChanged() throws Exception {
|
||||
doTest("jps-plugin/testData/incremental/packageInlineFunctionChanged/");
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
Cleaning output files:
|
||||
out/production/module/test/Klass$object.class
|
||||
out/production/module/test/Klass.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/const.kt
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/module/test/Usage.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/usage.kt
|
||||
End of files
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
class Klass {
|
||||
class object {
|
||||
// Old and new constant values are different, but their hashes are the same
|
||||
val CONST = "BF"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
class Klass {
|
||||
class object {
|
||||
// Old and new constant values are different, but their hashes are the same
|
||||
val CONST = "Ae"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
deprecated(Klass.CONST + Klass.CONST)
|
||||
class Usage
|
||||
Reference in New Issue
Block a user