He-Pin commented on issue #1081:
URL: https://github.com/apache/pekko/issues/1081#issuecomment-4899756215

   ### Analysis Summary
   
   This issue has been **fully resolved** on all supported branches.
   
   **Root Cause**: Scala 3 compiler generates different constructor signatures 
for Actor classes nested inside test spec classes — the enclosing instance 
reference is passed as an implicit constructor parameter. `Props.apply` uses 
reflective constructor lookup (`Reflect.findConstructor`) which couldn't match 
these inner-class constructors with the arguments provided.
   
   **Fix**: PR #1220 moved `Follower`, `SchedulerDocSpec` actors, and 
`DispatcherDocSpec` actors from inside test spec classes to the top-level 
package scope, eliminating the implicit outer-class constructor parameter.
   
   **Released versions containing the fix**:
   - `1.0.x` branch: included in **v1.0.3+** (cherry-pick PR #1225, commit 
`cbf97def19`)
   - `1.1.x` branch: included in **v1.1.0+** (commit `c818001180`)
   - All subsequent release branches (1.2.x, 1.3.x, ..., main)
   
   **Verification**: Re-ran `docs.actor.ActorDocSpec -- -z "using Identify"` on 
`main` with Scala 3.3.8 — **test passes** ✅
   
   Closing as completed.


-- 
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]

Reply via email to