[ClavaAst] Fixes bug in ClavaNode.get()
Throwing an exception could generate an infinite recursion;
@@ -550,7 +550,8 @@ public abstract class ClavaNode extends ATreeNode<ClavaNode>
return value;
} catch (Exception e) {
- throw new RuntimeException("Problem while accessing attribute '" + key + "' in ClavaNode: " + this, e);
+ throw new RuntimeException(
+ "Problem while accessing attribute '" + key + "' in ClavaNode: " + this.getNodeName(), e);
}
}
