Repository navigation
Upgrading is recommended for all users.
π Happy with
cffu! π¦ and be a "shifu"~ π
π Refactor/Improvements
completeOnTimeout: backport bugfixJDK-8303742inJava 21toJava 9~20β°πcompleteOnTimeoutleaks 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 byorTimeoutandcompleteOnTimeout - more info about the JDK bug "
CompletableFuture.orTimeoutleaks 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/orTimeoutdo not leak when the future completes exceptionally - test(
LLCF): testIS_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
CompletableFuturetimeouts on theForkJoinPoolcommon pool's delay scheduler, not aScheduledThreadPoolExecutor
- Java 25 runs
- 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>
