KT-4770 Javac fails against Kotlin inner class

#KT-4770 fixed
This commit is contained in:
Evgeny Gerashchenko
2014-03-27 23:25:32 +04:00
parent bcc6843835
commit 829cd95469
11 changed files with 75 additions and 10 deletions
@@ -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));
}
@@ -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");