Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: Scala 2.11.0-M1
    • Fix Version/s: Scala 2.11.0-M2
    • Component/s: Misc Library
    • Labels:
      None
    • Environment:

      Windows 7

      Description

      On Windows, can't delete a file after slurping.

      import scala.compat.Platform.EOL
      import scala.io.Codec
      import scala.reflect.io._
      import java.io.{ File => JFile }
      
      object Test extends App {
        val j = new JFile(args(0))
        val s = new File(j).slurp()
        Console println s.lines.mkString(s"${args(0)} {$EOL", EOL, s"$EOL}$EOL")
        val res = j.delete()
        Console println s"Deleted? $res"
      }
      

        Activity

        Show
        Adriaan Moors added a comment - https://github.com/scala/scala/pull/2237

          People

          • Assignee:
            A. P. Marki
            Reporter:
            A. P. Marki
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development