JDK-4495783 : File not found exception when trying to access macintosh files on NT
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.3.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-08-23
  • Updated: 2001-11-28
  • Resolved: 2001-11-28
Related Reports
Duplicate :  
Description

Name: bsC130419			Date: 08/23/2001


java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

Each line of the following code throws "FileNotFoundException".

FileInputStream resourceIn = new FileInputStream("V:\\mac\uF021in");
FileOutputStream resourceOut = new FileOutputStream("V:\\mac\uF021out" );

I was trying to access an existing macintosh file of name "mac*in" and write to
a new file that has a macintosh file with file name "mac*out". The "V:" drive
is a drive on NT4.0 server that is shared with a macintosh over Microsoft SFM (
Service For Macintosh). SFM maps a macintosh "*" to unicode "\uF021" on NT. Sun
JVM should handle these kind of NT specific stuff for developers.

The same lines of code work perfectly fine with Microsoft JVM.
(Review ID: 130556) 
======================================================================