-
Bug
-
Resolution: Fixed
-
P3
-
1.1.4
-
1.1.8
-
sparc
-
solaris_2.5.1
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2018141 | 1.2.0 | Mark Reinhold | P3 | Resolved | Fixed | 1.2fcs |
Name: mf23781 Date: 11/27/97
The test program
import java.io.*;
class Test {
public static void main (String [] args) throws Exception{
File f = new File("/u/cockbain/java/bugs/3752/..");
System.out.println ("CanonicalPath = " + f.getCanonicalPath());
}
}
Prints out
CanonicalPath = /u/cockbain/java/bugs/3752/..
on Solaris but it should print out
CanonicalPath = /u/cockbain/java/bugs
THis works OK on Win95
======================================================================
- backported by
-
JDK-2018141 java.io.File.getCanonicalPath does not resolve final ".." in the path (solaris)
- Resolved