properly read constructor with default params from bytecode

This commit is contained in:
Stepan Koltsov
2012-03-02 20:49:13 +04:00
parent c15bd2f75d
commit 99249c65da
3 changed files with 9 additions and 1 deletions
@@ -312,7 +312,7 @@ public class FunctionCodegen {
jvmSignature = new Method(jvmSignature.getName(), correctedDescr);
}
int flags = ACC_PUBLIC; // TODO.
int flags = ACC_PUBLIC | ACC_SYNTHETIC; // TODO.
String ownerInternalName = contextClass instanceof NamespaceDescriptor ?
NamespaceCodegen.getJVMClassName(DescriptorUtils.getFQName(contextClass), true) :
@@ -0,0 +1,3 @@
package test
class ClassWithConstructorWithValueParamWithDefaultValue(p: Int = 1)
@@ -0,0 +1,5 @@
namespace test
final class test.ClassWithConstructorWithValueParamWithDefaultValue : jet.Any {
final /*constructor*/ fun <init>(/*0*/ p: jet.Int = ?): test.ClassWithConstructorWithValueParamWithDefaultValue
}