- Klassenvariable ohne Wert
This commit is contained in:
parent
b51079280e
commit
5b07d58093
@ -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));
|
||||
il.append(this.wert.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);
|
||||
|
Loading…
Reference in New Issue
Block a user