diff --git a/src/main/java/abstractSyntaxTree/Expression/LocalVarIdentifier.java b/src/main/java/abstractSyntaxTree/Expression/LocalVarIdentifier.java index 7642d08..aa8345e 100644 --- a/src/main/java/abstractSyntaxTree/Expression/LocalVarIdentifier.java +++ b/src/main/java/abstractSyntaxTree/Expression/LocalVarIdentifier.java @@ -65,7 +65,7 @@ public class LocalVarIdentifier extends AbstractType implements IExpression{ case "int": mv.visitVarInsn(Opcodes.ILOAD, index); break; - case "bool": + case "boolean": mv.visitVarInsn(Opcodes.ILOAD, index); break; case "void": diff --git a/src/main/java/abstractSyntaxTree/StatementExpression/AssignStatementExpression.java b/src/main/java/abstractSyntaxTree/StatementExpression/AssignStatementExpression.java index e80fb12..560d155 100644 --- a/src/main/java/abstractSyntaxTree/StatementExpression/AssignStatementExpression.java +++ b/src/main/java/abstractSyntaxTree/StatementExpression/AssignStatementExpression.java @@ -116,7 +116,7 @@ public class AssignStatementExpression extends AbstractType implements IExpressi case "int": descriptor.append("I"); break; - case "bool": + case "boolean": descriptor.append("Z"); break; default: diff --git a/src/main/java/abstractSyntaxTree/StatementExpression/NewStatementExpression.java b/src/main/java/abstractSyntaxTree/StatementExpression/NewStatementExpression.java index a868c0e..23b7b71 100644 --- a/src/main/java/abstractSyntaxTree/StatementExpression/NewStatementExpression.java +++ b/src/main/java/abstractSyntaxTree/StatementExpression/NewStatementExpression.java @@ -66,7 +66,7 @@ public class NewStatementExpression extends AbstractType implements IExpression, case "int": descriptor.append("I"); break; - case "bool": + case "boolean": descriptor.append("Z"); break; case "char":