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 <[email protected]>
Date: 2017-07-21T12:14:03Z
Avoid ambiguity error when appending to Properties in Scala code
commit bce6848a5e03efb13e56b3a915e86d7f889ca16e
Author: Ismael Juma <[email protected]>
Date: 2017-07-21T12:14:40Z
Avoid deprecated Class.newInstance in Utils.newInstance
commit 5d36fb7ff6559e6bb9211fcfc665a69393fb829a
Author: Ismael Juma <[email protected]>
Date: 2017-07-21T12:26:41Z
Use position() and limit() to fix ambiguity issue
commit e1b9849da180da6bc8fe3fbc6b0895c4f3f9fc7c
Author: Ismael Juma <[email protected]>
Date: 2017-07-21T12:29:18Z
var -> val and unused fixes
commit 86d81ccc370ebbad3f6f542d6b5c92306a3810a0
Author: Ismael Juma <[email protected]>
Date: 2017-07-21T12:30:04Z
Silence a few Java 9 deprecation warnings
commit 1fca2f0acc53e71904aa0c37f871892e82679d1f
Author: Ismael Juma <[email protected]>
Date: 2017-08-01T10:05:54Z
Enable --release and disable findBugs if Java 9 is used
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---