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

Fix for Java 13 compatibility #23 #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markbastian
Copy link

Fix entailed added type hints to resolve breaking code. All unit tests pass. No reflection errors in core ns. I did not update project dependencies to minimize project changes but this might be a good idea as well.

@slipset
Copy link
Member

slipset commented Feb 24, 2022

@markbastian would you be interested in following up on this work now? I can release a new version once this is approved, perhaps by @ztellman ?

@markbastian
Copy link
Author

Absolutely! I haven't looked at this in ages but it should still be good to go.

@boxxxie
Copy link

boxxxie commented Apr 13, 2022

i tested these changes, i'm not sure what the process is for merging, but for the few people who use this lib, i think merging and making a release would be welcome.

vedang pushed a commit to vedang/durable-queue that referenced this pull request May 2, 2023
Fixes Java 13+ compatiblity issues, as noted in
clj-commons#23. Copying the relevant parts from the
Issue:

   `java.nio.ByteBuffer` and the other buffer types in `java.nio` now
   define absolute bulk `get` and `put` methods to transfer contiguous
   sequences of bytes without regard to or effect on the buffer
   position.

Due to this, running durable-queue against Java 13+ leads to the
following error:

   No matching method put found taking 2 args for class
   `java.nio.DirectByteBuffer`

This commit fixes the problem by adding the relevant type-hints

Author: Mark Bastian
Ref:    https://github.com/markbastian/durable-queue
Closes: clj-commons#23
Closes: clj-commons#24
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

Successfully merging this pull request may close these issues.

3 participants