Details
-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
5.0u2
-
x86
-
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
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
- duplicates
-
JDK-6245663 (spec) File.renameTo(File) changes the file-system object, not the File instance
- Resolved