You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/09/13 12:18:00 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=16164561#comment-16164561 ] 

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

GitHub user ijuma opened a pull request:

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

    KAFKA-4501: Fix EasyMock and disable PowerMock tests under Java 9

    - EasyMock 3.5 supports Java 9.
    - Removed unnecessary PowerMock dependency from 3 tests.
    - Disable remaining PowerMock tests when running with Java 9
    until https://github.com/powermock/powermock/issues/783 is
    done.
    - Once we merge this PR, we can run tests on PRs with Java 9.

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

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

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

    https://github.com/apache/kafka/pull/3845.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 #3845
    
----
commit ab60da36358a792e1079aed25859828602c1a619
Author: Ismael Juma <is...@juma.me.uk>
Date:   2017-08-21T13:51:00Z

    Use EasyMock instead of PowerMock in 3 connect tests

commit 6e0f8c7d9c147d0340c711b6edd8cbadac344a31
Author: Ismael Juma <is...@juma.me.uk>
Date:   2017-08-21T13:51:37Z

    Exclude PowerMock tests if running with Java 9

commit f076943217f522d6a5a516a559939dc1e7711b40
Author: Ismael Juma <is...@juma.me.uk>
Date:   2017-09-13T12:02:35Z

    Upgrade easymock to 3.5

----


> 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)