diff options
author | Philipp Haller <hallerp@gmail.com> | 2008-07-24 09:56:59 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2008-07-24 09:56:59 +0000 |
commit | 9117995a53c4e6f40452d470cac2175c93cef40f (patch) | |
tree | 469cda35095de2dbfab3806d284f8e48e3f14e64 | |
parent | c69e0a9b8262bcf1e97f53d65097fcfa21dba644 (diff) | |
download | scala-9117995a53c4e6f40452d470cac2175c93cef40f.tar.gz scala-9117995a53c4e6f40452d470cac2175c93cef40f.tar.bz2 scala-9117995a53c4e6f40452d470cac2175c93cef40f.zip |
Fixed #775.
-rw-r--r-- | src/library/scala/runtime/NonLocalReturnException.scala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/library/scala/runtime/NonLocalReturnException.scala b/src/library/scala/runtime/NonLocalReturnException.scala index d21627d417..87a5007e08 100644 --- a/src/library/scala/runtime/NonLocalReturnException.scala +++ b/src/library/scala/runtime/NonLocalReturnException.scala @@ -14,4 +14,10 @@ package scala.runtime import Predef.RuntimeException -class NonLocalReturnException[T](val key: AnyRef, val value: T) extends RuntimeException +class NonLocalReturnException[T](val key: AnyRef, val value: T) extends RuntimeException { + /* + * For efficiency reasons we do not fill in + * the execution stack trace. + */ + override def fillInStackTrace(): Throwable = this +} |