Potential fix for the remote dispatch of TypedActor methods when overloading is used.
This commit is contained in:
parent
49338dc9ed
commit
b5b46aaff0
2 changed files with 13 additions and 16 deletions
|
|
@ -924,8 +924,7 @@ class RemoteServerHandler(
|
|||
val typedActorInfo = actorInfo.getTypedActorInfo
|
||||
|
||||
val typedActor = createTypedActor(actorInfo, channel)
|
||||
val args = MessageSerializer.deserialize(request.getMessage).asInstanceOf[Array[AnyRef]].toList
|
||||
val argClasses = args.map(_.getClass)
|
||||
val (argClasses, args) = MessageSerializer.deserialize(request.getMessage).asInstanceOf[Tuple2[Array[Class[_]],Array[AnyRef]]]
|
||||
|
||||
try {
|
||||
val messageReceiver = typedActor.getClass.getDeclaredMethod(typedActorInfo.getMethod, argClasses: _*)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue