You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Nikolay Kuznetsov (JIRA)" <ji...@apache.org> on 2006/12/07 15:25:29 UTC
[jira] Updated: (HARMONY-2522) [classlib][io][compatibility]RI
throws IOException on attempt to create upper then root while harmony just
returns false
[ http://issues.apache.org/jira/browse/HARMONY-2522?page=all ]
Nikolay Kuznetsov updated HARMONY-2522:
---------------------------------------
Attachment: test.java
> [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: 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