pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Brown (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-756) FileBrowserSheet displays incorrect directory listing.
Date Mon, 13 Jun 2011 14:53:51 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048583#comment-13048583

Greg Brown commented on PIVOT-756:

FWIW, on my system, multiple file browser sheets are opened before I get the "Race triggered
after..." message (on the last run, I got 14).

But after reviewing the code, I do see a potential race condition. The execute() method of
RefreshFileListTask is actually populating the table view. This should be done by the TaskListener
that invokes the task, in refreshFileList(). execute() is called on the background thread
so it should not be accessing the user interface directly. 

RefreshFileListTask should probably be updated to return File[] instead of Void, and the rest
of the code in execute() should be moved to the anonymous implementation of taskExecuted()
in refreshFileList().

> FileBrowserSheet displays incorrect directory listing.
> ------------------------------------------------------
>                 Key: PIVOT-756
>                 URL: https://issues.apache.org/jira/browse/PIVOT-756
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>         Environment: Windows 7 Professional, Sun JRE 1.6.0_25
>            Reporter: Yawning Angel
>             Fix For: 2.0.1
>         Attachments: FileBrowserSheet.png, FileBrowserSheetTest.java
> I've ran into intermittent issues with FileBrowserSheet displaying a incorrect directory
> The symptoms that I see are:
>  * The file list includes files/directories from user.home (despite setRootDirectory(somewhereElse)
being called prior to the open().)
>  * The file list has duplicate entries.
> It's reproducible with a short test case on my system, so I highly doubt that it's a
issue with my application code.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message