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

Ivan Pavlukhin commented on IGNITE-12787:
-----------------------------------------

[~amashenkov], is a resolved **openjdk** ticket a sufficient proof? 
https://bugs.openjdk.java.net/browse/JDK-6427854

Here is a jdk8_b01 code 
https://github.com/openjdk/jdk/blob/d2ac7a107e4af38df029fc19e37df25a4831514e/jdk/src/share/classes/sun/nio/ch/Util.java#L451
 _volatile_ property seems to be the fix we are looking for.

> 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