[Reflection] Support java sealed classes in kotlin reflection

^KT-46778
This commit is contained in:
Dmitriy Novozhilov
2021-07-15 18:36:59 +03:00
committed by teamcityserver
parent fa1d09c778
commit 8dad8fa813
5 changed files with 114 additions and 2 deletions
@@ -146,6 +146,18 @@ public class BlackBoxModernJdkCodegenTestGenerated extends AbstractBlackBoxCodeg
public void testSealedJavaClassViaJavaReflection() throws Exception {
runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealedJavaClassViaJavaReflection.kt");
}
@Test
@TestMetadata("sealedJavaClassViaKotlinReflection.kt")
public void testSealedJavaClassViaKotlinReflection() throws Exception {
runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealedJavaClassViaKotlinReflection.kt");
}
@Test
@TestMetadata("sealedJavaInterfaceViaKotlinReflection.kt")
public void testSealedJavaInterfaceViaKotlinReflection() throws Exception {
runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealedJavaInterfaceViaKotlinReflection.kt");
}
}
@Nested
@@ -146,6 +146,18 @@ public class IrBlackBoxModernJdkCodegenTestGenerated extends AbstractIrBlackBoxC
public void testSealedJavaClassViaJavaReflection() throws Exception {
runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealedJavaClassViaJavaReflection.kt");
}
@Test
@TestMetadata("sealedJavaClassViaKotlinReflection.kt")
public void testSealedJavaClassViaKotlinReflection() throws Exception {
runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealedJavaClassViaKotlinReflection.kt");
}
@Test
@TestMetadata("sealedJavaInterfaceViaKotlinReflection.kt")
public void testSealedJavaInterfaceViaKotlinReflection() throws Exception {
runTest("compiler/testData/codegen/boxModernJdk/testsWithJava17/sealedJavaInterfaceViaKotlinReflection.kt");
}
}
@Nested