harmony-commits mailing list archives

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

Tony Wu updated HARMONY-2522:
-----------------------------

    Attachment: harmony-2522.diff

would you please try my patch.

> [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
>            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
Method)
>         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

        

Mime
View raw message