Change synthetic accessor method names to "access$..."
As per discussion in https://youtrack.jetbrains.com/issue/KT-6870
This commit is contained in:
@@ -96,7 +96,15 @@ public class MethodOrderTest: CodegenTestCase() {
|
||||
}
|
||||
""",
|
||||
"Outer",
|
||||
listOf("<clinit>()V", "c()V", "<init>(ILjava/lang/String;)V", "getB\$b$0(LOuter;)Ljava/lang/String;", "setB\$b$0(LOuter;Ljava/lang/String;)V", "getA\$b$1(LOuter;)I", "c\$b$2(LOuter;)V")
|
||||
listOf(
|
||||
"<clinit>()V",
|
||||
"c()V",
|
||||
"<init>(ILjava/lang/String;)V",
|
||||
"access\$getB$0(LOuter;)Ljava/lang/String;",
|
||||
"access\$setB$0(LOuter;Ljava/lang/String;)V",
|
||||
"access\$getA$1(LOuter;)I",
|
||||
"access\$c$2(LOuter;)V"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+16
@@ -60,6 +60,7 @@ import java.util.regex.Pattern;
|
||||
BlackBoxWithStdlibCodegenTestGenerated.Reified.class,
|
||||
BlackBoxWithStdlibCodegenTestGenerated.StoreStackBeforeInline.class,
|
||||
BlackBoxWithStdlibCodegenTestGenerated.Strings.class,
|
||||
BlackBoxWithStdlibCodegenTestGenerated.Synthetic.class,
|
||||
BlackBoxWithStdlibCodegenTestGenerated.ToArray.class,
|
||||
BlackBoxWithStdlibCodegenTestGenerated.Vararg.class,
|
||||
BlackBoxWithStdlibCodegenTestGenerated.When.class,
|
||||
@@ -3201,6 +3202,21 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxWithStdlib/synthetic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Synthetic extends AbstractBlackBoxCodegenTest {
|
||||
public void testAllFilesPresentInSynthetic() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxWithStdlib/synthetic"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticAccessorNames.kt")
|
||||
public void testSyntheticAccessorNames() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/synthetic/syntheticAccessorNames.kt");
|
||||
doTestWithStdlib(fileName);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxWithStdlib/toArray")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user