harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Owolabi (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5211) The <public boolean isFileSystemRoot(File dir)> method in the FileSystemView class in Java Swing will always return false.
Date Wed, 28 Nov 2007 06:20:42 GMT
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
            Reporter: Robert Owolabi


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