Preserving annotations in incremental compilation.

This commit is contained in:
Evgeny Gerashchenko
2014-07-01 19:57:36 +04:00
parent 6c8a9ba378
commit 2259cc605f
6 changed files with 58 additions and 14 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() {
}