Use getfield or putfield instructions for private properties instead of invokevirtual getA or setA
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user