harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5092) [classlib][EIOffice]file operation problems
Date Wed, 14 Nov 2007 07:06:43 GMT

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

Paulex Yang updated HARMONY-5092:
---------------------------------

    Attachment: Harmony-5092.diff

Here's the fix for the first issue of FileSystemView, further, it also fixes the WinFile.getName()
to comply with RI, 

And here's the test case: 

    public static void main(String[] args) throws IOException {
        File f = FileSystemView.getFileSystemView().getHomeDirectory();
        File[] files = f.listFiles();
        for (File file : files) {
            System.out.println("file:"+file);
            System.out.println("file.getName():"+file.getName());
            System.out.println();
        }

    }

On RI at WinXP.ia32 with zh_CN locale: 
file:我的电脑
file.getName():::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

file:网上邻居
file.getName():::{208D2C60-3AEA-1069-A2D7-08002B30309D}
...

On Harmony before the patch at same platform:

file:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
file.getName():我的电脑

file:::{208D2C60-3AEA-1069-A2D7-08002B30309D}
file.getName():网上邻居
...


> [classlib][EIOffice]file operation problems
> -------------------------------------------
>
>                 Key: HARMONY-5092
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5092
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP sp2 sch,harmony589837
>            Reporter: evermore
>            Assignee: Jimmy, Jing Lv
>         Attachments: Harmony-5092.diff, Harmony-5092.diff
>
>
> 1.javax.swing.filechooser.FileSystemView
>    File f = FileSystemView.getFileSystemView().getHomeDirectory();
>    File[] files = f.listFile();
> in returned File array,"my computer" is returned with the name ":{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
> 2.File f = new File("C:\\Documents and Settings\\(current username)\\桌面");
> method canRead() of variable f returned false

-- 
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