forked from JavaTX/JavaCompilerCore
Fehler in Bytecodegen der Methode beheben
This commit is contained in:
parent
141e952c7a
commit
1017b02704
@ -767,7 +767,7 @@ public class Method extends Field implements IItemWithOffset, TypeInsertable
|
||||
argumentNames[i] = parameter.getIdentifier();
|
||||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
short constants = Constants.ACC_PUBLIC; //Per Definition ist jede Methode public
|
||||
if(this.modifiers != null && this.modifiers.includesModifier(new Static())) constants += Constants.ACC_STATIC;
|
||||
|
||||
@ -778,7 +778,7 @@ public class Method extends Field implements IItemWithOffset, TypeInsertable
|
||||
|
||||
//Methode generieren und anfügen:
|
||||
cg.addMethod(method.createMethod(cg, getParameterList(), returnType, get_Block()));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -197,6 +197,7 @@ public class NewClass extends Expr
|
||||
InstructionList il = new InstructionList();
|
||||
//il.append(_cg.getInstructionFactory().createNew(get_Name()));
|
||||
il.append(_cg.getInstructionFactory().createNew(this.getType().getBytecodeType(_cg).toString()));
|
||||
il.append(InstructionConstants.DUP);
|
||||
|
||||
if(arglist!=null){
|
||||
il.append(arglist.generateBytecode(_cg));
|
||||
|
Loading…
Reference in New Issue
Block a user