Support 'accessible' for reflected properties on JVM

Calls Java reflection's isAccessible/setAccessible
This commit is contained in:
Alexander Udalov
2014-06-05 19:15:09 +04:00
parent 1275c84f92
commit e7f19c531a
7 changed files with 150 additions and 4 deletions
@@ -459,6 +459,21 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/callableReference/property/privateClassVal.kt");
}
@TestMetadata("privateClassVar.kt")
public void testPrivateClassVar() throws Exception {
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/callableReference/property/privateClassVar.kt");
}
@TestMetadata("protectedClassVar.kt")
public void testProtectedClassVar() throws Exception {
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/callableReference/property/protectedClassVar.kt");
}
@TestMetadata("publicClassValAccessible.kt")
public void testPublicClassValAccessible() throws Exception {
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/callableReference/property/publicClassValAccessible.kt");
}
@TestMetadata("simpleExtension.kt")
public void testSimpleExtension() throws Exception {
doTestWithStdlib("compiler/testData/codegen/boxWithStdlib/callableReference/property/simpleExtension.kt");