pjfanning commented on code in PR #3300:
URL: https://github.com/apache/pekko/pull/3300#discussion_r3535907680
##########
actor-typed/src/main/scala/org/apache/pekko/actor/typed/internal/LoggerClass.scala:
##########
@@ -70,7 +71,7 @@ private[pekko] object LoggerClass {
lambdaNameIdx = nextName.indexOf("$$Lambda")
if nextName.startsWith(cls.getName()) && lambdaNameIdx > 0
lambdaClsOwner = nextName.substring(0, lambdaNameIdx)
- } yield Class.forName(lambdaClsOwner)
+ } yield Reflect.loadClass(nextCaller.getClassLoader, lambdaClsOwner)
Review Comment:
Could this change behaviour? Class.forName(lambdaClsOwner) infers a
classloader and is it definitely going to be the same as
`nextCaller.getClassLoader`?
--
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]