Andreas Gies
Posts: 15
Nickname: 84653
Registered: Nov, 2012
|
|
Re: ClassCastException in Altimer after refactoring in section 6.2
|
Posted: Nov 14, 2012 4:32 PM
|
|
I was running into the same issue and have taken the advice to go to Scala 2.10.0-RC and akka 2.1.
Codewise I think I am now in line with what is in the book except for the Avionics class, where the Duration construction did not work in my code. Perhaps I am just missing the point. The time settings on my end are now:
implicit val timeOut = Timeout(5000);
or
system.scheduler.scheduleOnce(FiniteDuration(1, "s"))
Also, the package scala.concurrent.util.duration seems to have vanished. Perhaps thats because its a newer RC of Scala 2.10.
As a side note, I am using IntelliJ as my IDE and had everything up and running with 2.9.2 based Scala. Switching to 2.10-RC2 killed my SBT plugin and I finally reverted to maven. I think it's probably me not getting the entire picture of how things play together.
If you are interested, I can share the maven settings in case other IntelliJ users have the same problem.
Great book, btw. I really like the writing style.
Andreas
|
|