Refactor ReflectJavaConstructor.getValueParameters()
See https://youtrack.jetbrains.com/issue/KT-6886 for more information
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package test;
|
||||
|
||||
public enum EnumConstructorParameter {
|
||||
INSTANCE("instance");
|
||||
|
||||
public @interface Anno {
|
||||
String value();
|
||||
}
|
||||
|
||||
EnumConstructorParameter(@Anno("string") String s) {
|
||||
}
|
||||
|
||||
EnumConstructorParameter(int x) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package test
|
||||
|
||||
public final enum class EnumConstructorParameter : kotlin.Enum<test.EnumConstructorParameter!> {
|
||||
public enum entry INSTANCE : test.EnumConstructorParameter {
|
||||
private constructor INSTANCE()
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.EnumConstructorParameter!): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
|
||||
private constructor EnumConstructorParameter(/*0*/ p0: kotlin.Int)
|
||||
private constructor EnumConstructorParameter(/*0*/ test.EnumConstructorParameter.Anno(value = "string": kotlin.String) p0: kotlin.String!)
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.EnumConstructorParameter!): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
|
||||
public final annotation class Anno : kotlin.Annotation {
|
||||
public constructor Anno(/*0*/ value: kotlin.String)
|
||||
public abstract fun value(): kotlin.String
|
||||
}
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.EnumConstructorParameter
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.EnumConstructorParameter>
|
||||
}
|
||||
@@ -415,6 +415,12 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTestCompiledJava(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("EnumConstructorParameter.java")
|
||||
public void testEnumConstructorParameter() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/annotations/EnumConstructorParameter.java");
|
||||
doTestCompiledJava(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("EnumInParam.java")
|
||||
public void testEnumInParam() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/annotations/EnumInParam.java");
|
||||
|
||||
+6
@@ -3457,6 +3457,12 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("EnumConstructorParameter.java")
|
||||
public void testEnumConstructorParameter() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/annotations/EnumConstructorParameter.java");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("EnumInParam.java")
|
||||
public void testEnumInParam() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/annotations/EnumInParam.java");
|
||||
|
||||
Reference in New Issue
Block a user