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

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

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0u2
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_2000

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                iris Iris Clark
                Reporter:
                ndcosta Nelson Dcosta
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: