[
https://issues.apache.org/jira/browse/ZOOKEEPER-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fangmin Lv resolved ZOOKEEPER-3805.
-----------------------------------
Fix Version/s: 3.7.0
Resolution: Fixed
Resolved in PR [https://github.com/apache/zookeeper/pull/1338].
> 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
> Priority: Minor
> Fix For: 3.7.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)