Re: RFR: JDK-8267690: Revisit (Doc)Tree search implemented by throwing an exception [v2]

2022-04-25 Thread Jonathan Gibbons
On Mon, 25 Apr 2022 19:03:35 GMT, Jonathan Gibbons wrote: >> Please review a moderately simple cleanup change, to eliminate using an >> exception to terminate scanning a `Tree` or `DocTree` in >> `(Doc)TreePath.getPath`. >> >> The change is to set a field with the intended result, and once

Re: RFR: JDK-8267690: Revisit (Doc)Tree search implemented by throwing an exception [v2]

2022-04-25 Thread Pavel Rappo
On Mon, 25 Apr 2022 19:03:35 GMT, Jonathan Gibbons wrote: >> Please review a moderately simple cleanup change, to eliminate using an >> exception to terminate scanning a `Tree` or `DocTree` in >> `(Doc)TreePath.getPath`. >> >> The change is to set a field with the intended result, and once

Re: RFR: JDK-8267690: Revisit (Doc)Tree search implemented by throwing an exception [v2]

2022-04-25 Thread Jonathan Gibbons
> Please review a moderately simple cleanup change, to eliminate using an > exception to terminate scanning a `Tree` or `DocTree` in > `(Doc)TreePath.getPath`. > > The change is to set a field with the intended result, and once that field is > set, do "best-effort" to eliminate any addition