durable-queue icon indicating copy to clipboard operation
durable-queue copied to clipboard

Java 13 compatiblity

Open danielsz opened this issue 5 years ago • 12 comments

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.

danielsz avatar Sep 25 '19 19:09 danielsz

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.

lkrubner avatar Feb 04 '22 17:02 lkrubner

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.

ztellman avatar Feb 06 '22 20:02 ztellman

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

vedang avatar Feb 07 '22 05:02 vedang

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.

wmorgan-fsq avatar Feb 07 '22 14:02 wmorgan-fsq

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.

ztellman avatar Feb 08 '22 02:02 ztellman

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 avatar Feb 08 '22 16:02 worace

@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 avatar Feb 08 '22 16:02 worace

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 avatar Feb 08 '22 16:02 worace

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 avatar Feb 09 '22 19:02 worace

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.

worace avatar Feb 09 '22 19:02 worace

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

lkrubner avatar Mar 03 '22 16:03 lkrubner

@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.

worace avatar Mar 03 '22 18:03 worace