Skip to content

v2.0.8 πŸ¦πŸ’£

Latest

Choose a tag to compare

@oldratlee oldratlee released this 10 Nov 20:15
· 98 commits to 2.x-dev since this release

Upgrading is recommended for all users.

shifu

πŸ’— Happy with cffu! 🦝 and be a "shifu"~ πŸ˜†

πŸ›  Refactor/Improvements

  • completeOnTimeout: backport bugfix JDK-8303742 in Java 21 to Java 9~20 ⏰🐞
    • completeOnTimeout leaks if the future completes exceptionally on Java 9~20 πŸ›
    • JDK-8303742 (fixed in Java 21) comes from the JDK internal CompletableFuture.Canceller, which is shared by orTimeout and completeOnTimeout
    • more info about the JDK bug "CompletableFuture.orTimeout leaks if the future completes exceptionally":
    • the JDK bug issue: https://bugs.openjdk.org/browse/JDK-8303742
    • PR review: openjdk/jdk#13059
    • JDK bugfix commit: openjdk/jdk@ded6a81
  • refactor(CffuLogger): create per-class logger instances instead of static methods

πŸ§ͺ Tests

  • test: completeOnTimeout / orTimeout do not leak when the future completes exceptionally
  • test(LLCF): test IS_JAVA*_PLUS

πŸ“š Documentation

  • docs: correct default-executor description for Java 25+ πŸ“š
    • Java 25 always uses the common pool and no longer falls back to one thread per task
  • docs: correct timeout scheduler description for Java 25+ πŸ“š
    • Java 25 runs CompletableFuture timeouts on the ForkJoinPool common pool's delay scheduler, not a ScheduledThreadPoolExecutor
  • docs: replace "aka" with "i.e." for clarity and consistency πŸ“š
  • docs: improve code comments

🚜 Build/Chore

  • chore(CI): add Java 27 into CI πŸ€–
  • build(CI): pin Strong CI to ubuntu-24.04; ubuntu-latest (26.04) no longer pre-installs Java 8 πŸ€–
  • chore(CI): auto-merge Dependabot patch and minor updates πŸ€–
  • chore(CI): skip push trigger on Dependabot branches to avoid duplicate workflow runs πŸ€–
  • chore(CI): improve check_forbidden_classes.sh 🫸
  • chore: upgrade maven wrapper to 3.10.0 πŸͺΆ
  • chore(deps): upgrade dependencies/plugins πŸ“¦

πŸ”Œ API Docs

cffu Java API doc: https://foldright.io/api-docs/cffu2/2.0.8/

πŸͺ Maven dependencies

cffu core lib, including cffu enhancement for Java CompletableFuture:

<dependency>
    <groupId>io.foldright</groupId>
    <artifactId>cffu2</artifactId>
    <version>2.0.8</version>
</dependency>

cffu executor wrapper SPI implementation for πŸ“Œ TransmittableThreadLocal(TTL):

<dependency>
  <groupId>io.foldright</groupId>
  <artifactId>cffu2-ttl-executor-wrapper</artifactId>
  <version>2.0.8</version>
  <scope>runtime</scope>
</dependency>