Use JVM name of getter in synthetic method for property annotations
#KT-31352 In Progress
This commit is contained in:
+5
@@ -14873,6 +14873,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/jvmName/propertyName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertySyntheticMethod.kt")
|
||||
public void testPropertySyntheticMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmName/propertySyntheticMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("renamedFileClass.kt")
|
||||
public void testRenamedFileClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmName/renamedFileClass.kt");
|
||||
|
||||
+5
@@ -14873,6 +14873,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/jvmName/propertyName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertySyntheticMethod.kt")
|
||||
public void testPropertySyntheticMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmName/propertySyntheticMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("renamedFileClass.kt")
|
||||
public void testRenamedFileClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmName/renamedFileClass.kt");
|
||||
|
||||
+1
-2
@@ -18,7 +18,6 @@ package org.jetbrains.kotlin.codegen;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.kotlin.load.java.JvmAbi;
|
||||
import org.jetbrains.kotlin.name.Name;
|
||||
import org.jetbrains.kotlin.test.ConfigurationKind;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
@@ -38,7 +37,7 @@ public class SyntheticMethodForAnnotatedPropertyGenTest extends CodegenTestCase
|
||||
return "properties/syntheticMethod";
|
||||
}
|
||||
|
||||
private static final String TEST_SYNTHETIC_METHOD_NAME = JvmAbi.getSyntheticMethodNameForAnnotatedProperty(Name.identifier("property"));
|
||||
private static final String TEST_SYNTHETIC_METHOD_NAME = JvmAbi.getSyntheticMethodNameForAnnotatedProperty("getProperty");
|
||||
|
||||
public void testInClass() {
|
||||
loadFile();
|
||||
|
||||
+5
@@ -13758,6 +13758,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/jvmName/propertyName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertySyntheticMethod.kt")
|
||||
public void testPropertySyntheticMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmName/propertySyntheticMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("renamedFileClass.kt")
|
||||
public void testRenamedFileClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/jvmName/renamedFileClass.kt");
|
||||
|
||||
Reference in New Issue
Block a user