Fix for KT-10590: IllegalAccessError when protected getter of Java base class is accessed from lambda using property access syntax

This commit is contained in:
Michael Bogdanov
2016-01-25 13:02:42 +03:00
parent 9d66852ae2
commit cf09949354
6 changed files with 86 additions and 2 deletions
@@ -547,6 +547,18 @@ public class BlackBoxWithJavaCodegenTestGenerated extends AbstractBlackBoxCodege
doTestWithJava(fileName);
}
@TestMetadata("protectedJavaProperty")
public void testProtectedJavaProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxWithJava/properties/protectedJavaProperty/");
doTestWithJava(fileName);
}
@TestMetadata("protectedJavaPropertyInCompanion")
public void testProtectedJavaPropertyInCompanion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxWithJava/properties/protectedJavaPropertyInCompanion/");
doTestWithJava(fileName);
}
@TestMetadata("substituteJavaSuperField")
public void testSubstituteJavaSuperField() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxWithJava/properties/substituteJavaSuperField/");