harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-5211) [classlib][swing] The <public boolean isFileSystemRoot(File dir)> method in the FileSystemView class in Java Swing will always return false.
Date Thu, 29 Nov 2007 19:12:44 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Petrenko resolved HARMONY-5211.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> [classlib][swing] The <public boolean isFileSystemRoot(File dir)> method in the
FileSystemView class in Java Swing will always return false.
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5211
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5211
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux
>            Reporter: Robert Owolabi
>            Assignee: Alexey Petrenko
>         Attachments: FileSystemView.patch, HARMONY-5211-Test.patch
>
>
> The <public boolean isFileSystemRoot(File dir)> method in the FileSystemView class
 (java.swing.filechooser) will always return false because as it loops through all of the
available roots, it is comparing an array with a File object (The parameter <File dir>)
rather than the elements of the array.  Short fix, I just added the index  i to the variable
<File[] roots> in the loop.
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message