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

ASF GitHub Bot commented on KAFKA-4501:
---------------------------------------

GitHub user ijuma opened a pull request:

    https://github.com/apache/kafka/pull/3647

    KAFKA-4501: Java 9 compilation fixes

    Compilation fixes:
    - Avoid ambiguity error when appending to Properties in Scala code
    - Use position() and limit() to fix ambiguity issue
    - Disable findBugs if Java 9 is used
    
    Warning fixes:
    - Avoid deprecated Class.newInstance in Utils.newInstance
    - Silence a few Java 9 deprecation warnings
    - var -> val and unused fixes
    
    Also:
    - Set --release option if building with Java 9

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ijuma/kafka kafka-4501-support-java-9

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/3647.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3647
    
----
commit e9cde9fe45997b84f87985637deb2ec6872aaa4d
Author: Ismael Juma <ism...@juma.me.uk>
Date:   2017-07-21T12:14:03Z

    Avoid ambiguity error when appending to Properties in Scala code

commit bce6848a5e03efb13e56b3a915e86d7f889ca16e
Author: Ismael Juma <ism...@juma.me.uk>
Date:   2017-07-21T12:14:40Z

    Avoid deprecated Class.newInstance in Utils.newInstance

commit 5d36fb7ff6559e6bb9211fcfc665a69393fb829a
Author: Ismael Juma <ism...@juma.me.uk>
Date:   2017-07-21T12:26:41Z

    Use position() and limit() to fix ambiguity issue

commit e1b9849da180da6bc8fe3fbc6b0895c4f3f9fc7c
Author: Ismael Juma <ism...@juma.me.uk>
Date:   2017-07-21T12:29:18Z

    var -> val and unused fixes

commit 86d81ccc370ebbad3f6f542d6b5c92306a3810a0
Author: Ismael Juma <ism...@juma.me.uk>
Date:   2017-07-21T12:30:04Z

    Silence a few Java 9 deprecation warnings

commit 1fca2f0acc53e71904aa0c37f871892e82679d1f
Author: Ismael Juma <ism...@juma.me.uk>
Date:   2017-08-01T10:05:54Z

    Enable --release and disable findBugs if Java 9 is used

----


> Support Java 9
> --------------
>
>                 Key: KAFKA-4501
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4501
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Ismael Juma
>            Assignee: Ismael Juma
>             Fix For: 1.0.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.4.14#64029)

Reply via email to