- Klassenvariable ohne Wert

This commit is contained in:
Enrico Schrödter 2016-03-30 10:14:05 +02:00
parent b51079280e
commit 5b07d58093

View File

@ -180,7 +180,13 @@ public class FieldDeclaration extends Field{
//Die Felddekleration an den Konstruktor anhängen:
InstructionList il = new InstructionList();
il.append(new This(this).genByteCode(cg, rs));
if(wert != null){
il.append(this.wert.genByteCode(cg, rs));
}else{
//todo: default wert?
}
FieldInstruction putFieldInstruction =
cg.getInstructionFactory().createFieldAccess(this.getParentClass().getName().toString(),
this.getDescription(cg, rs), this.getType().getBytecodeType(cg, rs), Constants.PUTFIELD);