KT-4770 Javac fails against Kotlin inner class
#KT-4770 fixed
This commit is contained in:
@@ -146,8 +146,8 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
Class<?> inner = outer.getDeclaredClasses()[0];
|
||||
Constructor constructor = inner.getDeclaredConstructor(outer, int.class);
|
||||
assertNotNull(constructor);
|
||||
// Get annotations for first real parameter
|
||||
Annotation[] annotations = constructor.getParameterAnnotations()[1];
|
||||
// Get annotations for first parameter
|
||||
Annotation[] annotations = constructor.getParameterAnnotations()[0];
|
||||
assertNotNull(getDeprecatedAnnotationFromList(annotations));
|
||||
}
|
||||
|
||||
|
||||
+15
@@ -73,6 +73,21 @@ public class CompileJavaAgainstKotlinTestGenerated extends AbstractCompileJavaAg
|
||||
doTest("compiler/testData/compileJavaAgainstKotlin/class/ImplementsMapPP.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClass.kt")
|
||||
public void testInnerClass() throws Exception {
|
||||
doTest("compiler/testData/compileJavaAgainstKotlin/class/InnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassConstructors.kt")
|
||||
public void testInnerClassConstructors() throws Exception {
|
||||
doTest("compiler/testData/compileJavaAgainstKotlin/class/InnerClassConstructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassOfGeneric.kt")
|
||||
public void testInnerClassOfGeneric() throws Exception {
|
||||
doTest("compiler/testData/compileJavaAgainstKotlin/class/InnerClassOfGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3561.kt")
|
||||
public void testKt3561() throws Exception {
|
||||
doTest("compiler/testData/compileJavaAgainstKotlin/class/kt3561.kt");
|
||||
|
||||
Reference in New Issue
Block a user