You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ismael Juma (JIRA)" <ji...@apache.org> on 2017/01/16 14:43:26 UTC

[jira] [Commented] (KAFKA-4501) Support Java 9

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

Ismael Juma commented on KAFKA-4501:
------------------------------------

Sounds good to me [~ewencp]. A couple of things in Kafka that we will probably have to fix:
1. Accessing `sun.misc.Cleaner` in `AbstractIndex`. We only did it for Windows until now, but https://github.com/apache/kafka/pull/2352 will do it for all platforms. A commit that shows how Lucene changed their code to support Java 9: https://github.com/apache/lucene-solr/commit/7e03427fa14a024ce257babcb8362d2451941e21
2. `JaaUtils.defaultKerberosRealm` uses reflection and setAccessible.

> Support Java 9
> --------------
>
>                 Key: KAFKA-4501
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4501
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Ismael Juma
>             Fix For: 0.10.3.0
>
>
> Java 9 is scheduled to be released in July 2017. We should support it.
> The new module system enforces access control and things like `setAccessible` cannot, by default, be used to circumvent access control in other modules. There are command-line flags available to disable the behaviour on a module by module basis.
> Right now, Gradle fails with the latest Java 9 snapshot and Scala 2.12.1 is required if building with Java 9. So we are blocked until the Gradle issues are fixed.
> I set the "Fix version" to 0.10.2.0, but it's likely to happen for the release after that.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)