Don't resolve kotlin constructors from bytecode without JetConstructorAnnotation

This commit is contained in:
Natalia.Ukhorskaya
2012-12-24 14:39:02 +04:00
parent f4a44155d9
commit f0d52e63b2
11 changed files with 86 additions and 2 deletions
@@ -264,11 +264,21 @@ public class LoadCompiledKotlinTestGenerated extends AbstractLoadCompiledKotlinT
doTest("compiler/testData/loadKotlin/constructor/Constructor1WithParamDefaultValue.kt");
}
@TestMetadata("Constructor2WithOneParamDefaultValue.kt")
public void testConstructor2WithOneParamDefaultValue() throws Exception {
doTest("compiler/testData/loadKotlin/constructor/Constructor2WithOneParamDefaultValue.kt");
}
@TestMetadata("ConstructorCollectionParameter.kt")
public void testConstructorCollectionParameter() throws Exception {
doTest("compiler/testData/loadKotlin/constructor/ConstructorCollectionParameter.kt");
}
@TestMetadata("ConstructorWithTwoDefArgs.kt")
public void testConstructorWithTwoDefArgs() throws Exception {
doTest("compiler/testData/loadKotlin/constructor/ConstructorWithTwoDefArgs.kt");
}
@TestMetadata("ConstructorWithTwoTypeParameters.kt")
public void testConstructorWithTwoTypeParameters() throws Exception {
doTest("compiler/testData/loadKotlin/constructor/ConstructorWithTwoTypeParameters.kt");
@@ -294,6 +304,16 @@ public class LoadCompiledKotlinTestGenerated extends AbstractLoadCompiledKotlinT
doTest("compiler/testData/loadKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.kt");
}
@TestMetadata("InnerClassConstructorWithDefArgs.kt")
public void testInnerClassConstructorWithDefArgs() throws Exception {
doTest("compiler/testData/loadKotlin/constructor/InnerClassConstructorWithDefArgs.kt");
}
@TestMetadata("PrivateConstructor1WithParamDefaultValue.kt")
public void testPrivateConstructor1WithParamDefaultValue() throws Exception {
doTest("compiler/testData/loadKotlin/constructor/PrivateConstructor1WithParamDefaultValue.kt");
}
}
@TestMetadata("compiler/testData/loadKotlin/dataClass")
@@ -266,11 +266,21 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/constructor/Constructor1WithParamDefaultValue.kt");
}
@TestMetadata("Constructor2WithOneParamDefaultValue.kt")
public void testConstructor2WithOneParamDefaultValue() throws Exception {
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/constructor/Constructor2WithOneParamDefaultValue.kt");
}
@TestMetadata("ConstructorCollectionParameter.kt")
public void testConstructorCollectionParameter() throws Exception {
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/constructor/ConstructorCollectionParameter.kt");
}
@TestMetadata("ConstructorWithTwoDefArgs.kt")
public void testConstructorWithTwoDefArgs() throws Exception {
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/constructor/ConstructorWithTwoDefArgs.kt");
}
@TestMetadata("ConstructorWithTwoTypeParameters.kt")
public void testConstructorWithTwoTypeParameters() throws Exception {
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/constructor/ConstructorWithTwoTypeParameters.kt");
@@ -296,6 +306,16 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.kt");
}
@TestMetadata("InnerClassConstructorWithDefArgs.kt")
public void testInnerClassConstructorWithDefArgs() throws Exception {
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/constructor/InnerClassConstructorWithDefArgs.kt");
}
@TestMetadata("PrivateConstructor1WithParamDefaultValue.kt")
public void testPrivateConstructor1WithParamDefaultValue() throws Exception {
doTestCheckingPrimaryConstructors("compiler/testData/loadKotlin/constructor/PrivateConstructor1WithParamDefaultValue.kt");
}
}
@TestMetadata("compiler/testData/loadKotlin/dataClass")