clj-commons / durable-queue

a disk-backed queue for clojure
Eclipse Public License 1.0
384 stars 31 forks source link

Java 13 compatiblity #23

Open danielsz opened 5 years ago

danielsz commented 5 years ago

This library has been a workhorse across java updates. It looks like a bit of work will be required to maintain dependability with the release of java 13 which touched on many aspects of java.nio. The type-specific Buffer classes of java.nio now have absolute (as opposed to relative) bulk get and put methods.

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.

After upgrading to java 13, I started seeing the following error:

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

Linking back to the source: https://github.com/Factual/durable-queue/blob/83452cbcc4c15a2244747e77b54a96a23e027691/src/durable_queue.clj#L176

I hope it's a small thing to fix.

lkrubner commented 2 years ago

It looks like this fix was never made into an official release? Is there anywhere to get this fix? I'd be nervous about maintaining my own fork.

ztellman commented 2 years ago

I haven't had permission to deploy new releases of this library since roughly 2015, so cutting a new release will require some sort of fork. I'd be surprised if further changes beyond the above are required anytime soon, but if you're very concerned we can also try to see if clj-commons would like to take over this project.

vedang commented 2 years ago

I think it would be absolutely marvelous to move this to clj-commons or to your personal account @ztellman .

wmorgan-fsq commented 2 years ago

Hi @ztellman if you want to set up a fork then I'd be happy to link to it from the readme. I think we could also transfer this repo to you or clj-commons directly, but I would have to look up how to do that.

ztellman commented 2 years ago

Hey @wmorgan-fsq, been a while! I think it's better to transfer over the canonical repo, I can walk you through it once I confirm that clj-commons would like to take it over.

worace commented 2 years ago

Hey thanks for bumping us on this. I had been talking to Daniel Compton via email about moving this to clj-commons a few months ago. I was following up internally on that but let it go cold in some state of security or legal review. Apologies for not being more diligent on that. I'll kick the tires on this again and see if we can get it moved.

worace commented 2 years ago

@danielcompton sorry again I went dark on this. This is the correct GH org, right: https://github.com/clj-commons

Here's what I'm planning to do:

Screen Shot 2022-02-08 at 8 41 56 AM

I think once I do that, someone on your end will get a notification to accept the transfer.

worace commented 2 years ago

Ah, ok I tried but got this:

Screen Shot 2022-02-08 at 8 47 58 AM

Yall probably have some experience with transferring into that org so maybe you can let us know how to proceed

worace commented 2 years ago

OK done. thanks for following up on this folks. Cool to see continued interest in this project

https://github.com/clj-commons/durable-queue

worace commented 2 years ago

ah oops i guess this issue wasnt originally about moving the repo but about something else, so i guess i'll leave it open. sorry to have hijacked the whole thread.

lkrubner commented 2 years ago

@worace -- I had the impression the fix was there, but hasn't been merged to a release branch yet?

worace commented 2 years ago

@lkrubner i'm not sure anything was actually merged...I had accidentally closed the issue b/c we finished dealing with the repo transfer but not the actual underlying issue.

I'm afraid I haven't been following the actual issue under discussion here so you may need to ping someone else for updates on that part.