Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: zproject not generating variadic types for JNI bindings #299

Open
trevorbernard opened this issue Nov 19, 2015 · 1 comment
Open

Comments

@trevorbernard
Copy link
Member

No description provided.

trevorbernard added a commit to trevorbernard/zproject that referenced this issue Nov 19, 2015
c-rack added a commit that referenced this issue Nov 19, 2015
Fix issue #299 - emit Object... for variadic types in Java
@jimrthy
Copy link

jimrthy commented Jun 1, 2017

It seemed worth documenting that I just ran across one unexpected (to me) way this causes problems:

The Zpoller constructor takes an array of reader handles, which needs to be 0-terminated.

Due to this bug, we only pass along the first handle in that array.

This breaks the underlying vararg handling in the C layer.

The work-around is to just pass [0] to the constructor and then use .add() on each reader handle individually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants