Await#result javadoc explains it throws TimeoutException, except the actual declaration is Exception. The methods it calls do seem to throw Exception though. Can this be fixed?
@throws(classOf[Exception])def result[T](awaitable: Awaitable[T], atMost: Duration): T = awaitable.result(atMost)
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/IZvQ4nLsSBEJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
He is referring to this ScalaDoc doc on Await object:
https://github.com/akka/akka/blob/master/akka-actor/src/main/scala/akka/dispatch/Future.scala#L70
Does not match signature:
https://github.com/akka/akka/blob/master/akka-actor/src/main/scala/akka/dispatch/Future.scala#L73
Why @throws(classOf[Exception])
and not @throws(classOf[TimeoutException])
When the ScalaDoc clearly says it throws TimeoutException.
On Sun, May 27, 2012 at 10:12 PM, Jonas Bonér <jo...@jonasboner.com> wrote:He is referring to this ScalaDoc doc on Await object:
https://github.com/akka/akka/blob/master/akka-actor/src/main/scala/akka/dispatch/Future.scala#L70
Does not match signature:
https://github.com/akka/akka/blob/master/akka-actor/src/main/scala/akka/dispatch/Future.scala#L73
Why @throws(classOf[Exception])
and not @throws(classOf[TimeoutException])
When the ScalaDoc clearly says it throws TimeoutException.Thanks for the interpretation, I'll fix. :-)