Skip to content

Conversation

@rhusar
Copy link

@rhusar rhusar commented Nov 13, 2025

…x compatibility

This commit adds java.time.Duration overloads for setKeepAliveTime methods to resolve API incompatibility between jboss-threads 2.4.x and Infinispan 15.0.19+.

Infinispan 15.0.19 (from RHDG 8.5.5) calls:
builder.setKeepAliveTime(Duration.of(keepAlive, ChronoUnit.MILLIS))

But jboss-threads 2.4.0 only provides:
setKeepAliveTime(long, TimeUnnit)

resulting in NoSuchMethodError

@rhusar rhusar changed the title Add Duration-based setKeepAliveTime API to 2.4.x for Infinispan 15.0.… [2.4] Add Duration-based setKeepAliveTime API to 2.4.x for Infinispan 15.0.… Nov 13, 2025
@dmlloyd
Copy link
Member

dmlloyd commented Nov 17, 2025

Would it be OK to release this as a 2.5.0?

@pferraro
Copy link

@dmlloyd A 2.5.0 release is fine.

@dmlloyd
Copy link
Member

dmlloyd commented Nov 18, 2025

Can I require Java 17 as a baseline? Or should it work with 11?

@rhusar rhusar marked this pull request as ready for review November 18, 2025 13:22
@dmlloyd dmlloyd changed the base branch from 2.4 to 2.x November 18, 2025 14:30
@dmlloyd
Copy link
Member

dmlloyd commented Nov 18, 2025

Rebased on to 2.x. Beware because the branch is still called 2.4!

@rhusar
Copy link
Author

rhusar commented Nov 18, 2025

OK this will need a rebase then.

@rhusar
Copy link
Author

rhusar commented Nov 18, 2025

Can I require Java 17 as a baseline? Or should it work with 11?

Yes. This is for EAP 8.1.1 which is JDK 17 baselined.

…x compatibility

This commit adds java.time.Duration overloads for setKeepAliveTime methods
to resolve API incompatibility between jboss-threads 2.4.x and Infinispan
15.0.19+.

Infinispan 15.0.19 (from RHDG 8.5.5) calls:
  builder.setKeepAliveTime(Duration.of(keepAlive, ChronoUnit.MILLIS))

But jboss-threads 2.4.0 only provides:
  setKeepAliveTime(long, TimeUnnit)

resulting in NoSuchMethodError

Signed-off-by: Radoslav Husar <radosoft@gmail.com>
@dmlloyd
Copy link
Member

dmlloyd commented Nov 18, 2025

The linux test doesn't fail for me locally on Linux (or anything else) so I'll just go ahead with this for now.

@dmlloyd dmlloyd merged commit c656c5f into jboss:2.x Nov 18, 2025
4 of 6 checks passed
@rhusar
Copy link
Author

rhusar commented Nov 18, 2025

Looks like those tests are flaky, especially on GHA...

@rhusar
Copy link
Author

rhusar commented Nov 18, 2025

Thanks for the merge!

@rhusar rhusar deleted the 2.4 branch November 18, 2025 15:19
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