[
https://issues.apache.org/jira/browse/ZOOKEEPER-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17092762#comment-17092762
]
Sean Busbey commented on ZOOKEEPER-3215:
----------------------------------------
the homebrew formula looks to come from the core homebrew project [defined over
in homebrew-core's
github|https://github.com/Homebrew/homebrew-core/blob/master/Formula/zookeeper.rb].
AFAICT it installs from source and builds via a bare invocation of ant. running
{{ant -diagnostics}} on my system points to JDK8 as what ant is seeing
{code}
busbey-mba13:~ busbey$ ant -diagnostics | grep -E
"(ant.java.version|java.home|java.vm.vendor|java.vm.version|java.runtime.version)"
ant.java.version: 1.8
java.vm.version : 25.161-b12
java.vm.vendor : Oracle Corporation
java.runtime.version : 1.8.0_161-b12
java.home : /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre
{code}
I'll try wiping everything, confirming jdk versions, and rerunning the install.
maybe the console where I did my installation had a different jdk active.
> Handle Java 9/11 additions of covariant return types to java.nio.ByteBuffer
> methods
> -----------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-3215
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3215
> Project: ZooKeeper
> Issue Type: Bug
> Affects Versions: 3.4.13
> Reporter: V
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 2h
> Remaining Estimate: 0h
>
> Java 9 introduces covariant return types which allows one to have different
> return types if return type in the overridden method is a sub type. Since
> Java 9, few functions return ByteBuffer, whereas the parent method return
> Buffer, resulting in causing issues for Java 8 and below since for them the
> method does not exist.
> Steps To Reproduce:
> 1. Setup ZooKeeper Server with JDK11.
> 2. Setup ZooKeeper Client with JDK8.
> 3. Try connecting the client and server.
> Results:
> Cast ByteBuffer instances to Buffer before calling the method.
>
> Notes:
> There was a similar bug in the MongoDB community -
> [https://jira.mongodb.org/browse/JAVA-2559]
>
> This is not a contribution.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)