JDK-4308504 : File.isDirectory() opens a 'java.exe - no medium' dialog for removeable drive (win)
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.2.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2000-01-31
  • Updated: 2005-08-29
  • Resolved: 2005-08-29
Related Reports
Duplicate :  
Description
Name: skT88420			Date: 01/31/2000


java version "1.2.2"
Classic VM (build JDK-1.2.2-W, native threads, symcjit)

if you want to test a File object representing a removeable drive ( with no
Medium inserted ) with methods like isDirectory(), canWrite(),.. java.exe
creates a Dialog 'no medium'.
 
Is it possible to throw a Exception for this reason? I think it would give more
flexibility in software design.
(Review ID: 100561) 
======================================================================

Comments
EVALUATION Windows has a per process error mode that determines if a critical error dialog should popup or not. This issue is being examined in 4089199.
29-08-2005

EVALUATION A new JSR to cover upcoming filesystem work will be submitted soon. We will add this request to the list of issues to be considered in the new JSR. ###@###.### 2002-03-28
28-03-2002