The GitHub Actions job "Pull Requests" on 
pekko.git/java-api-replace-tuple2-with-pair has failed.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
91f7b8454f7e4e0c2f94868ba4de6292f392771f / 虎鸣 <[email protected]>
Replace scala.Tuple2 with pekko.japi.Pair in FSMTransitionHandlerBuilder

Motivation:
Java users see scala.Tuple2 in their IDE when using FSMTransitionHandlerBuilder,
which violates the principle of avoiding Scala data structures in Java APIs.

Modification:
- Replace scala.Tuple2 with pekko.japi.Pair in FSMTransitionHandlerBuilder
- Update AbstractFSM and PersistentFSMBase to use a proper adapter instead of
  an unsafe .asInstanceOf[TransitionHandler] cast
- Add MiMa filters for the binary incompatibility

Result:
Java FSM API no longer exposes scala.Tuple2; uses the established 
pekko.japi.Pair
type instead. The adapter is also type-safe (no more unchecked cast).

Tests:
- sbt "actor-tests / Test / testOnly 
org.apache.pekko.actor.AbstractFSMActorTest" PASSED
- sbt "docs / Test / testOnly jdocs.actor.fsm.*" PASSED
- sbt "persistence / Test / testOnly 
org.apache.pekko.persistence.fsm.InmemPersistentFSMSpec" PASSED
- sbt "actor / mimaReportBinaryIssues" PASSED

References:
Refs #2086

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

With regards,
GitHub Actions via GitBox


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

Reply via email to