korrekte bytecode

This commit is contained in:
Fayez Abu Alia 2017-12-20 14:14:05 +01:00
parent 5f731bb09c
commit d989100b47

View File

@ -67,7 +67,7 @@ public class BytecodeGen implements ASTVisitor {
className = classOrInterface.getClassName().toString();
// access flages??
cw.visit(Opcodes.V1_8, classOrInterface.getModifiers()+Opcodes.ACC_SUPER, classOrInterface.getClassName().toString()
, null, classOrInterface.getSuperClass().toString(), null);
, null, classOrInterface.getSuperClass().toString().replace(".", "/"), null);
// for each field in the class
for(Field f : classOrInterface.getFieldDecl()) {