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)