Name: dgC58589 Date: 01/13/98
1,2,3. the code:
File f = new File("c:\\a\\b");
shows
getParent() c:\a -- as expected,
getAbsolutePath() c:\a\b (also as expected)
getCanonicalPath() c:\a\b (also as expected)
but the code
File f = new File("c:\\a\\b\\");
shows
getParent() c:\a\b -- an ERROR
getAbsolutePath() c:\a\bgetCanonicalPath() c:\a\b (the same as parent!)
4. N/A
5. It might seems like bug 4065506 but it is different errorneous behaviour!
(Review ID: 23026)
======================================================================
- relates to
-
JDK-4244032 java.io.File.getAbsolutePath does not behave the same in JDK 1.1.7 and JDK 1.2
-
- Closed
-
-
JDK-4131169 java.io.File: Respecify using abstract pathnames rather than strings
-
- Closed
-