Name: mc57594 Date: 06/29/99
The following code works correctly in jdk 1.0.2. In other
words, when no floppy is in the a: drive, an exception
is thrown. However, in 1.1.7 this causes a blocking
dialog to be displayed! This dialog, which presents
abort, retry, and ignore buttons, should not be displayed.
import java.io.*;
public class TestFloppy
{
public static void main(String args[])
{
try
{
FileInputStream fis = new FileInputStream("a:");
fis.close();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
(Review ID: 85003)
======================================================================
- duplicates
-
JDK-4089199 File creation on removable drives without a disk brings up a dialog (win)
-
- Resolved
-