gunnarmorling/beanvalidation-spec — comment on commit ecc902c548ce9830f1aa28cadffe6d721ffaab82
File: specbook/en/modules/validation-api.xml line 958
By gunnarmorling:

Yes, the problem I see with that is that it makes traversing over a given path a bit more complicated. With the current proposal we have everything needed on `Node`, so one can simply iterate over a path, check the attributes of each node and print them etc.
With a sub-type based approach one would have to check each node for its type (either via `instanceof` or via dedicated methods such as `isMethod()`, `isParameter()`) and then down-cast the node to that type.
Compared to that I felt that adding the three to `Node` doesn't add too much complexity much while keeping things simple for clients of `Path`. But it's definitely something which should be pursued.