==========================================================================
carlos.lucasius@canada 1998-05-05:
Bug reported by Corel (licensee) for AWT using JDK1.1.4 on WINNT4.0.
Corel: "Very critical bug for our product - requires immediate attention."
To reproduce:
(1) Execute the following code:
FileDialog f = new FileDialog(aFrame, "Save", FileDialog.SAVE);
f.show();
if (f.getFile() != null)
{
String szFileName = f.getDirectory();
szFileName += f.getFile();
try
{
BufferedWriter out = new BufferedWriter(new FileWriter(szFileName));
}
catch(IOException ex)
{
System.out.println("Exception thrown " + ex);
}
}
(2) When the file dialog appears, in the file name edit field type
the full path of the file save location on a network drive -- e.g.
\\servername\temp\filename.ext (where "\\servername\temp" is the
network drive and "filename.ext" is the file name)
(3) Click the save button
RESULT:
A FileNotFoundException is thrown on creation of the FileWriter.
NOTE:
This is a problem when we specify the network drive name, e.g.,
"\\servername\temp\filename.ext". This is not a problem when
we specify the network drive letter (assuming that the network
drive is mapped to a drive letter), e.g., "h:\filename.ext".