Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8185623

(se) AbstractSelector.selectorOpen is not published safely

XMLWordPrintable

    • b18
    • Not verified

      1. from java.nio.channels.Selector's javadoc:
       * <p> Selectors are themselves safe for use by multiple concurrent threads;

      2. AbstractSelector is a Selector.
      -------------------------------------------------------

      Should be:

      private final AtomicBoolean selectorOpen = new AtomicBoolean(true);

      instead of:

      private AtomicBoolean selectorOpen = new AtomicBoolean(true);

            bpb Brian Burkhalter
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: