You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "javhu (Jira)" <ji...@apache.org> on 2020/04/24 01:18:00 UTC

[jira] [Created] (ZOOKEEPER-3805) NIOServerCnxnFactory static block has no used code

javhu created ZOOKEEPER-3805:
--------------------------------

             Summary: NIOServerCnxnFactory static block has no used code
                 Key: ZOOKEEPER-3805
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3805
             Project: ZooKeeper
          Issue Type: Improvement
          Components: server
            Reporter: javhu


NIOServerCnxnFactory static block has no used code:

/**
 * this is to avoid the jvm bug:
 * NullPointerException in Selector.open()
 * http://bugs.sun.com/view_bug.do?bug_id=6427854
 */
try {
 Selector.open().close();
} catch(IOException ie) {
 LOG.error("Selector failed to open", ie);
}

But the jvm bug: JDK-6427854 : (se) NullPointerException in Selector.open()
has been fixed in JDK7 b08



--
This message was sent by Atlassian Jira
(v8.3.4#803005)