The GitHub Actions job "Binary Compatibility" on 
pekko.git/refactor/remove-failedCompletionStage has failed.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
5c5b478d4457658e01995af55b2f44da4dd8eff0 / 虎鸣 <[email protected]>
refactor: remove deprecated failedCompletionStage, use 
CompletableFuture.failedStage

Motivation:
Futures.failedCompletionStage was deprecated since 2.0.0 and used the
dangerous obtrudeException API which can corrupt other futures sharing
the same underlying CompletableFuture. CompletableFuture.failedStage
(JDK 9) is the correct replacement.

Modification:
- Remove failedCompletionStage method from Futures object
- Replace internal call in CompletionStages.reduce with
  CompletableFuture.failedStage
- Replace test call sites with CompletableFuture.failedStage
- Remove unnecessary @SuppressWarnings("deprecation") from tests
- Remove unused CompletableFuture import from Future.scala

Result:
Eliminates obtrudeException usage, removes deprecated API.

Tests:
sbt "actor-tests / Test / testOnly org.apache.pekko.pattern.PatternsTest
    org.apache.pekko.dispatch.CompletionStagesTests" — 40/40 passed

References:
Refs #3136

Report URL: https://github.com/apache/pekko/actions/runs/28001178298

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to