Preserving annotations in incremental compilation.

Original commit: 2259cc605f
This commit is contained in:
Evgeny Gerashchenko
2014-07-01 19:57:36 +04:00
parent bf5c65bef6
commit 1f91c2b724
5 changed files with 33 additions and 0 deletions
@@ -51,6 +51,11 @@ public class IncrementalJpsTestGenerated extends AbstractIncrementalJpsTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("jps-plugin/testData/incremental"), Pattern.compile("^([^\\.]+)$"), false);
}
@TestMetadata("annotations")
public void testAnnotations() throws Exception {
doTest("jps-plugin/testData/incremental/annotations/");
}
@TestMetadata("classInlineFunctionChanged")
public void testClassInlineFunctionChanged() throws Exception {
doTest("jps-plugin/testData/incremental/classInlineFunctionChanged/");
@@ -0,0 +1,13 @@
package test
annotation class Anno
[Anno] fun f() {
}
[Anno] val v1 = ""
var v2: String
get() = ""
[Anno] set(value) {
}
@@ -0,0 +1,7 @@
Cleaning output files:
out/production/module/test/TestPackage-other-*.class
out/production/module/test/TestPackage.class
End of files
Compiling files:
src/other.kt
End of files
@@ -0,0 +1,4 @@
package test
fun dummyFunction() {
}
@@ -0,0 +1,4 @@
package test
fun dummyFunction() {
}