Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8180205 Umbrella: potential JDK core library API deprecations
  3. JDK-8181098

Deprecate java.io.File or some of its individual methods

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      java.io.File has several issues that can not be fixed easily without breaking backward compatibility.
      So in Java 7, a whole new package java.nio.file and in particular the class java.nio.file.Path was introduced to supersede java.io.File.

      At the time of the writing (May 2017), we still see people introducing java.io.File in new code, so we should help developers to migrate to java.nio.file.Path by deprecating java.io.File.

      see http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-May/047847.html

       

            alanb Alan Bateman
            forax RĂ©mi Forax
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: