[ 
https://issues.apache.org/jira/browse/IGNITE-12787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17061687#comment-17061687
 ] 

Andrey Mashenkov commented on IGNITE-12787:
-------------------------------------------

[~Pavlukhin], yes, PR looks good to me.

Apparently, "stable" versions (OpenJDK and vendored) already has the fix as it 
was fixed in early JDK 1.8 beta version.

> Remove obsolete Selector.open workaround code from GridNioServer
> ----------------------------------------------------------------
>
>                 Key: IGNITE-12787
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12787
>             Project: Ignite
>          Issue Type: Task
>          Components: general
>            Reporter: Ivan Pavlukhin
>            Assignee: Ivan Pavlukhin
>            Priority: Major
>             Fix For: 2.9
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> There is a code in {{GridNioServer}} aimed to workaround an old bug in JDK 
> 1.5 which was fixed in 1.7.
> {code}
>     static {
>         // This is a workaround for JDK bug (NPE in Selector.open()).
>         // http://bugs.sun.com/view_bug.do?bug_id=6427854
>         try {
>             Selector.open().close();
>         }
>         catch (IOException ignored) {
>             // No-op.
>         }
>     }
> {code}
> Currently Java 8 is a minimal supported version. So, the workaround code can 
> be removed.



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

Reply via email to