Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4969398
Votes 0
Synopsis Need method for determining available disk space given path.
Category java:classes_io
Reported Against 1.4
Release Fixed
State 11-Closed, duplicate of 4057701, bug
Priority: 2-High
Related Bugs 4057701
Submit Date 16-DEC-2003
Description
Java needs to provide a standard method for determining available disk
space given a path.  As it stands, the only indication Java provides is
the exception generated when space is exhausted.  This is unacceptable as
it does not allow an application to determine when space is low and warn
the user or take other action before the space is exhausted and serious
side effects occur.  Java is a multi-platform programming environment that
should provide this functionality in the JRE through a standard API call.
Requiring the programmer to write platform specific code for every possible
platform is not acceptable for such a basic function common to all platforms.

  xxxxx@xxxxx   2003-12-16
Work Around
As it stands, a Java programmer that wishes to avoid serious
damage to a user's system must use native code or Runtime.exec
calls that are platform specific for every possible platform
the app might be run on.

This is unacceptable.
  xxxxx@xxxxx   2003-12-16
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 08-JUL-2004
s690716
"This is unacceptable"...
Conclusion?



PLEASE NOTE: JDK6 is formerly known as Project Mustang