I'm having an issue with a scala script using 2.7.7 - Main$$anon$1$$anonfun$1$$anonfun$apply$2

Posted by Uruhara747 on Stack Overflow See other posts from Stack Overflow or by Uruhara747
Published on 2010-04-14T15:19:00Z Indexed on 2010/04/14 15:23 UTC
Read the original article Hit count: 505

Filed under:

This is the code I used from a book... import scala.actors.Actor._

val countActor = actor{ loop { react{ case "how many?" => { println("I've got " + mailboxSize.toString + " messages in my mailbox.") } } } }

countActor ! 1 countActor ! 2 countActor ! 3 countActor ! "how many?" countActor ! "how many?" countActor ! 4 countActor ! "how many?"

The error

java.lang.NoClassDefFoundError: Main$$anon$1$$anonfun$1$$anonfun$apply$2

© Stack Overflow or respective owner

Related posts about scala