Use getfield or putfield instructions for private properties instead of invokevirtual getA or setA

This commit is contained in:
Natalia.Ukhorskaya
2012-11-01 15:50:58 +04:00
parent ec255e8342
commit 481afeb914
6 changed files with 83 additions and 5 deletions
@@ -366,4 +366,14 @@ public class PropertyGenTest extends CodegenTestCase {
blackBoxFile("properties/kt2892.kt");
}
public void testAccessToPrivateProperty() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("properties/accessToPrivateProperty.kt");
}
public void testAccessToPrivateSetter() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("properties/accessToPrivateSetter.kt");
}
}