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:25 UTC
[jira] Created: (HARMONY-2522) [classlib][io][compatibility]RI
throws IOException on attempt to create upper then root while harmony just
returns false
[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
[jira] Updated: (HARMONY-2522) [classlib][io][compatibility]RI
throws IOException on attempt to create upper then root while harmony just
returns false
Posted by "Nikolay Kuznetsov (JIRA)" <ji...@apache.org>.
[ 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
[jira] Assigned: (HARMONY-2522) [classlib][io][compatibility]RI
throws IOException on attempt to create upper then root while harmony just
returns false
Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2522?page=all ]
Richard Liang reassigned HARMONY-2522:
--------------------------------------
Assignee: Richard Liang
> [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 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
[jira] Updated: (HARMONY-2522) [classlib][io][compatibility]RI
throws IOException on attempt to create upper then root while harmony just
returns false
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ 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
[jira] Resolved: (HARMONY-2522) [classlib][io][compatibility]RI
throws IOException on attempt to create upper then root while harmony just
returns false
Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
[ 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,
Richard
> [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 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