harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Liang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-2522) [classlib][io][compatibility]RI throws IOException on attempt to create upper then root while harmony just returns false
Date Fri, 15 Dec 2006 10:15:26 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2522?page=all ]

Richard Liang resolved HARMONY-2522.

    Resolution: Fixed

Hello Tony,

The patch has been applied at revision r487508, thanks a lot for this enhancement.

Nikolay, would you please verify this issue is fully fixed as you expected? Thanks a lot.

Best regards,

> [classlib][io][compatibility]RI throws IOException on attempt to create upper then root
while harmony just returns false
> ------------------------------------------------------------------------------------------------------------------------
>                 Key: HARMONY-2522
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2522
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>         Assigned To: Richard Liang
>            Priority: Trivial
>         Attachments: harmony-2522.diff, test.java
> Harmony returns false on creating new file when object file==java.io.File("/..") but
RI throws IOException on Linux and Windows
> platform. According to the specification method returns false if the named file already
exists and throws IOException if an I/O error occurred.
> While there are different opinions on whether such file exists or impossible to create
the behavior remains incomatible:
> attached test demonstrates this problem:
> RI output:
> java.io.IOException: Access is denied
>         at java.io.Win32FileSystem.createFileExclusively(Ljava.lang.String;)Z(Native
>         at java.io.File.createNewFile(File.java:850)
>         at test.main(test.java:6)
> Harmony output:
> file.createNewFile()=false

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message