On Fri, 17 Sep 2021 11:55:46 GMT, lawrence.andrews 
<[email protected]> wrote:

> Both final & volatile can be used it gives error "Illegal combination of 
> modifiers: volatile & final"

That's right: both final and volatile don't make sense.

What I meant was
Suggestion:

    private static final CountDownLatch countDownLatch = new CountDownLatch(1);

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

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

Reply via email to