diff options
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/util/Marshal.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library/scala/util/Marshal.scala b/src/library/scala/util/Marshal.scala index 9875a37c2a..a382265d6f 100644 --- a/src/library/scala/util/Marshal.scala +++ b/src/library/scala/util/Marshal.scala @@ -6,7 +6,7 @@ ** |/ ** \* */ -// $Id: $ +// $Id$ package scala.util @@ -38,7 +38,9 @@ object Marshal { throw new ClassCastException("type mismatch;"+ "\n found : "+found+ "\n required: "+expected) - in.readObject.asInstanceOf[A] + val o = in.readObject.asInstanceOf[A] + in.close() + o } } |