pjfanning commented on issue #3474:
URL: https://github.com/apache/pekko/issues/3474#issuecomment-5436634221
I have Claude AI running on this and it agrees that there is an issue.
So far, it's suggestion is to change to this.
```
abstract class AbstractPersistentActorWithTimers extends AbstractActor with
Timers with AbstractPersistentActorLike {
// The methods below are overridden solely so that this class carries real
(non-synthetic) overrides
// for the members that both `Timers` and `Eventsourced` implement. Scala
3 emits the mixin forwarders
// as ACC_BRIDGE/ACC_SYNTHETIC methods, which javac ignores when resolving
inherited members, so a Java
// subclass would otherwise fail to compile with "inherits unrelated
defaults". The bodies just delegate
// to `super`, which resolves exactly like the forwarders they replace.
override protected[pekko] def aroundReceive(receive: Actor.Receive, msg:
Any): Unit =
super.aroundReceive(receive, msg)
override protected[pekko] def aroundPreRestart(reason: Throwable, message:
Option[Any]): Unit =
super.aroundPreRestart(reason, message)
override protected[pekko] def aroundPostStop(): Unit =
super.aroundPostStop()
}
```
If you are in a hurry, you create this as a class in your own project and
use it instead of Pekko's built-in one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]