Supervision Java example wrong

Trying to understand the supervision strategy of Akka based on this Lightbend article. It seems the article not following the Akka rules

https://developer.lightbend.com/start/?group=akka&project=akka-samples-supervision-java

  1. It has a Parent actor named “ArithmeticService” with SupervisorStrategy defined in it.
  2. Parent in #1 create a child actor named “FlakyExpressionCalculator” and it too has its own SupervisorStrategy defined in it

But SupervisorStrategy defined in # 2 is not taking effect, child actor is always escalating the exception to parent and its up to the parent to decide what to do next. This kind of makes sense after reading the rules
supervision here

When a subordinate detects a failure (i.e. throws an exception), it suspends itself and all its subordinates and sends a message to its supervisor, signaling failure.

Tested with Akka 2.5.26

Thanks for letting us know, that definitely looks strange.

I’ve created an issue to track that over in the samples repo: https://github.com/akka/akka-samples/issues/131