KT-8206 java.lang.NoSuchFieldError: $kotlinClass for deprecated::class

Instantiate class literals for annotation classes as foreign.
This commit is contained in:
Dmitry Petrov
2015-07-09 10:41:47 +03:00
committed by Alexander Udalov
parent 95f5d24988
commit d540ff8890
3 changed files with 17 additions and 1 deletions
@@ -2751,6 +2751,12 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxWithStdlib/reflection/classLiterals"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("annotationClassLiteral.kt")
public void testAnnotationClassLiteral() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/reflection/classLiterals/annotationClassLiteral.kt");
doTestWithStdlib(fileName);
}
@TestMetadata("arrays.kt")
public void testArrays() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/reflection/classLiterals/arrays.kt");