Don't assert that annotation class has constructor in AnnotationDeserializer

#KT-9758 Fixed
This commit is contained in:
Alexander Udalov
2015-11-03 15:24:20 +03:00
parent 1a0c2e2cf6
commit 748c0e7149
8 changed files with 53 additions and 12 deletions
@@ -69,8 +69,10 @@ public class CompileKotlinAgainstCustomBinariesTest extends TestCaseWithTmpdir {
}
@NotNull
private File compileLibrary(@NotNull String sourcePath) {
return MockLibraryUtil.compileLibraryToJar(new File(getTestDataDirectory(), sourcePath).getPath(), "customKotlinLib", false);
private File compileLibrary(@NotNull String sourcePath, @NotNull String... extraClassPath) {
return MockLibraryUtil.compileLibraryToJar(
new File(getTestDataDirectory(), sourcePath).getPath(), "customKotlinLib", false, extraClassPath
);
}
private void doTestWithTxt(@NotNull File... extraClassPath) throws Exception {
@@ -341,4 +343,11 @@ public class CompileKotlinAgainstCustomBinariesTest extends TestCaseWithTmpdir {
assertEquals(null, debugInfo.get());
}
}
public void testReplaceAnnotationClassWithInterface() throws Exception {
File library1 = compileLibrary("library-1");
File usage = compileLibrary("usage", library1.getPath());
File library2 = compileLibrary("library-2");
doTestWithTxt(usage, library2);
}
}