On Tue, 13 Apr 2021 20:31:38 GMT, Andy Herrick <herr...@openjdk.org> wrote:

>> That seems like overkill.  walkFileTree must call visitFile, 
>> preVisitDirectory, and postVisitDirectory synchronously, because their 
>> return value tells walkFileTree where to go next.
>
> I can use AtomicReference instead of Array to hold the IOException, but must 
> I lock around access, there is no "setIfNull()" method

Actually there is: compareAndSet(newValue, null)

-------------

PR: https://git.openjdk.java.net/jdk/pull/3473

Reply via email to