On Mon, 25 Apr 2022 16:21:35 GMT, Pavel Rappo <pra...@openjdk.org> wrote:
> I think I'm mistaken: your version does all these things I thought it wasn't > doing. What's the difference between it and Jan's version? Is it more > responsive wrt termination when the target node is found? I didn't know/check Jan's version. If there's an equivalent version, I'm OK to share authorship credits, but not fussed either way. > src/jdk.compiler/share/classes/com/sun/source/util/TreePath.java line 69: > >> 67: >> 68: @Override >> 69: public TreePath scan(TreePath path, Tree docTree) { > > The second parameter has nothing to do with `DocTree`. Copy-paste? good catch; thanks. copy-paste error; will fix ------------- PR: https://git.openjdk.java.net/jdk/pull/8369