pjfanning commented on PR #1892:
URL: https://github.com/apache/pekko/pull/1892#issuecomment-2992374787

   I've tried a few ways to get AtomicLongFieldUpdater to work but so far no 
look. AtomicLongFieldUpdater does runtime checks and can only access fields in 
the same class or public variables - but we can't make the long public because 
then it could be manipulated by any code and it isn't good to have a 
AtomicLongFieldUpdater declared in the Children trait because you get one 
instance per ActorCell. I tried using a companion object but in Java that's a 
separate class and you can't then access a private field in another class.
   It's easier in Java because you can declare static and non-static vars in 
the same class. It tried creating a Java abstract class that does this and have 
it inherited by Children trait. This causes ActorCell not to compile.


-- 
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: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to