This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 98227

Summary: Deadlock-prone call to EventQueue.invokeAndWait from FileUtil.getFileSystemView
Product: platform Reporter: Jesse Glick <jglick>
Component: FilesystemsAssignee: rmatous <rmatous>
Status: RESOLVED FIXED    
Severity: blocker Keywords: REGRESSION, TEST
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 98388    
Bug Blocks: 95031    

Description Jesse Glick 2007-03-19 16:54:55 UTC
See

http://ffjqa.czech/automatedtests/xtest/netbeans_dev/200703181900/qa-unit/qa-t4u-xp2/testrun_070319-000556/logs/ant_freeform_unit.log

EQ is waiting on CloneableEditorSupport.openDocument. But that is running in
another thread, which blocks on EQ. IMHO the Filesystems API should never block
on EQ for any reason. If getFileSystemView() is called off EQ, and
fileSystemView is still null, it should simply return null. This is only likely
to affect unit tests, and these would not typically be dealing with floppy disks
anyway.
Comment 2 rmatous 2007-03-20 16:47:16 UTC
/cvs/openide/fs/src/org/openide/filesystems/FileUtil.java,v  <--  FileUtil.java
new revision: 1.36; previous revision: 1.35
Comment 3 Tomas Pavek 2007-06-29 19:01:20 UTC
*** Issue 89945 has been marked as a duplicate of this issue. ***