Skip to main content

File.list() blocks

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
3 replies [Last post]
imagero
Offline
Joined: 2003-11-18

I implemented FileTree with children loading in separate Thread(s), so that GUI is not affected if File.list() taking a bit longer.
Unfortunately, I found that if I click on Network node and then on another directory node, then list() for another directory does not returns till Network request is processed.
Is this a Windows (I use Win7) or java issue?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
imagero
Offline
Joined: 2003-11-18

Well, this is definitiv Java issue,because its blocks only in same JVM.

Is this a (known) bug?
imagero
Offline
Joined: 2003-11-18

Very strange, although I making it in anoter Thread, EDT is freezed if I click on Network.

imagero
Offline
Joined: 2003-11-18

Any thoughts, anyone???