tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Winter" <>
Subject getCanonicalFile()
Date Fri, 10 Jan 2003 21:07:24 GMT
I just upgraded from Tomcat 4.0 to the latest Tomcat 4.1 and 
noticed something very strange that I was hoping someone could
give me some insight on:

Everyplace that I use to get a FileInputStream by simply saying:

   File file = new File("filename");
   InputStream istream = new FileInputStream(file);

I've had to change to

   File file = new File("filename");
   File file2 = file.getCanonicalFile();
   InputStream istream = new FileInputStream(file2);

In the second case calling

    file.getCanonicalPath()   or

returns the same string.

I get the sense that there is something fundamental I'm 
just forgetting or not thinking about.  Any ideas?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message