JDK-4089199 : File creation on removable drives without a disk brings up a dialog (win)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version:
    1.1.4,1.1.7,1.2.0,1.2.1,1.2.2,1.3.1,1.3.1_03,1.4.0,1.4.2,5.0 1.1.4,1.1.7,1.2.0,1.2.1,1.2.2,1.3.1,1.3.1_03,1.4.0,1.4.2,5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_2.6,windows_nt,windows_2000
  • CPU: x86,sparc
  • Submitted: 1997-10-28
  • Updated: 2017-05-16
  • Resolved: 2005-09-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b55Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
Name: paC48320			Date: 10/28/97


File drive;
                
// A:\\ is a floppy drive
drive = new File(new String("A:\\");
               
// if there is no floppy in drive A:\ then the OS
// brings up a dialog 
drive.exists();
======================================================================

Comments
EVALUATION -- This bug has been addreseds in mustang b55 so that the critical message box is disabled by default. Previous behaviour can be obtained by running the application with the system property sun.io.allowCriticalMessageBox set (eg: java -Dsun.io.allowCriticalMessageBox App).
26-09-2005

EVALUATION Part of the issue is whether users actually want the dialog we are considering suppressing. The Windows interface designers have, in their infinite wisdom, decided to create this dialog, so who are we to say they are wrong? (Of course, they *are* wrong, and every year the memory of floppies, which probably inspired this misfeature, fades from our collective consciousness)
25-08-2005

EVALUATION I have verified that this issue still duplicates with mustang b48. As a test I updated the VM startup to change the process-wide error mode so that this dialog is disabled. This resolves the issue but it needs significant testing to ensure that there aren't any side effects and other issues.
25-08-2005

EVALUATION The change in behavior can be seen between the korn shell and the dos shell under NT. The difference is probably due to different parameters being passed to the CreateProcess. I've tried other seemingly useful tacks, such as SetErrorMode, with no change in this behavior. benedict.gomes@eng 1998-08-03 This behavior does not appear to be a Java bug, but rather a consequence of the way in which the VM is invoked under Win32. Whether or not a dialog pops up when a removable drive is accessed appears to be up to the program that creates the process that runs the VM. We have been unable to find a way to change this behavior from within the VM. It seems that Win32 has been designed to forbid a program from controlling this aspect of its user interface. -- mr@eng 8/16/1998
16-08-1998