I'm reading the documentation
<http://doc.akka.io/docs/akka/2.4/scala/actors.html#Edge_cases> about
actors and now I'm at the section about actor creation. This is an example
I tried:
> case class MyValueClass(v: Int) extends AnyVal
>
> class ValueActor(v: MyValueClass) extends Actor {
> override def receive: Receive = {
> case _ => println("Received message")
> }
> }
>
>
When creating the actor as following:
val valueRef = system.actorOf {
> Props(classOf[ValueActor], MyValueClass(10))
> }
>
>
I actually got the *IllegalArgumentException*. But what's wrong with that?
To me, creating actors with value classes as parameters seems completely
innocent. What did I miss?
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.