In commit [39f7c6a], the semantics of
ASTNode.toString() was changed. Previously it pretty-printed the subtree rooted at the node, but now it only prints information about the node.
Many error messages in JastAddJ rely on the prettyprinting semantics, so either they have to be updated, or the semantics should be reverted back to the previous one.
For example, there are error messages in
typecheck.jrag that call
getTypeAccess(), and there are many other cases. Some error messages also call
thiswhich has the same effect.
I (Görel) think it might be a good idea to revert the semantics since this change might affect many users of JastAddJ. They might have written their own error messages, and they might have tests that check error message output.