JVM KT-22465 don't generate accessor to private setter in other class
This commit is contained in:
+20
@@ -22533,6 +22533,26 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/properties/accessToPrivateSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterViaSuper.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterViaSuper() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterWithIntermediateClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInProperties() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
+10
@@ -25,6 +25,16 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBytecodeListing() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
+25
-5
@@ -14799,11 +14799,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/anySuperCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldNameClash.kt")
|
||||
public void ignoreFieldNameClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassWithCustomEquals.kt")
|
||||
public void ignoreInlineClassWithCustomEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt");
|
||||
@@ -15107,6 +15102,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/extLambdaInInlineClassFun2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldNameClash.kt")
|
||||
public void testFieldNameClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericInlineClassSynthMembers.kt")
|
||||
public void testGenericInlineClassSynthMembers() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/genericInlineClassSynthMembers.kt");
|
||||
@@ -22548,6 +22548,26 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/properties/accessToPrivateSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterViaSuper.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterViaSuper() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterWithIntermediateClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInProperties() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
+20
@@ -20762,6 +20762,26 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/properties/accessToPrivateSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterViaSuper.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterViaSuper() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterViaSuper.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterWithIntermediateClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/properties/accessorForProtectedPropertyWithPrivateSetterWithIntermediateClass.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInProperties() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
+10
@@ -25,6 +25,16 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt")
|
||||
public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBytecodeListing() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user