Name: nt126004 Date: 09/30/2002
FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
A DESCRIPTION OF THE PROBLEM :
we need to be able to get the files of a directory one by
one. Actually, having a long directory list freezes the
program. Ok, i can thread this, and that is what is done to
reduce the mess, but the problems described below can't be
- show read update progress
- interrupt the read
- read the list up to a desired entry
- get a raw list, unsorted. (because faster than sorted and
sometimes not a necessity)
- have a background thread that would check all file in the
system, without major slowdowns on the system during on big
These are my actual problems in a program i'm actually
creating, that is a pure java attempt of a file system
handler for creating amongst other programs an Explorer like
program, but way smarter.
EXPECTED VERSUS ACTUAL BEHAVIOR :
What i want is the adding of:
public java.util.Enumeration enumerateFiles() throws
should do the job nicely.
I know that Iteration should be prefered to Enumeration, but
in this case, we don't need synchronisation, nor we need the
adding/removing services. thus, it would be more efficient
to use Enumeration.
This bug can be reproduced always.
CUSTOMER WORKAROUND :
go through JNI, and loose portability.
(Review ID: 160397)