Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6246551

(spec) File.renameTo and File class javadoc - misleading immutability statement

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0u2
    • core-libs
    • x86
    • windows_2000

      A DESCRIPTION OF THE REQUEST :
      In the Java 2 std edition the File api documentation states "Instances of the File class are immutable; that is, once created, the abstract pathname represented by a File object will never change."

      This is inconsistent with the effect of the renameTo (File des) method. After a successful rename, the pathname is different.

      JUSTIFICATION :
      Improve accuracy of API

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      not applicable
      ACTUAL -
      not applicable
      ###@###.### 2005-03-28 05:14:44 GMT

            iris Iris Clark
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: