You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/11/30 07:01:43 UTC
[jira] Closed: (HARMONY-5211) [classlib][swing] The method in the FileSystemView class in Java
Swing will always return false.
[ https://issues.apache.org/jira/browse/HARMONY-5211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko closed HARMONY-5211.
------------------------------------
Verified.
> [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.