harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Markov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1494) [classlib][luni] FileDescriptor.sync() throws unexpected SyncFailedException when the descriptor is read-only.
Date Fri, 29 Dec 2006 13:39:23 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1494?page=comments#action_12461375 ] 
            
Mikhail Markov commented on HARMONY-1494:
-----------------------------------------

Hi, Andrew!
Are you still working on this issue?


> [classlib][luni] FileDescriptor.sync() throws unexpected SyncFailedException when the
descriptor is read-only.
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1494
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1494
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrew Zhang
>
> Following test case reproduces the bug:
>     public void testSyncReadOnly() throws Exception {
>         String TESTFILE = "tempFile";
>         try {
>             FileOutputStream fos = new FileOutputStream(TESTFILE);
>             fos.write("something".getBytes());
>             fos.close();
>             RandomAccessFile raf = new RandomAccessFile(TESTFILE, "rw");
>             raf.getFD().sync();
>             raf.close();
>             FileInputStream fis = new FileInputStream(TESTFILE);
>             fis.getFD().sync();
>             fis.close();
>         } finally {
>             new File(TESTFILE).delete();
>         }
>     }
> The test passes against RI while fails against Harmony. I'll try to fix this problem.

> Best regards,
> Andrew

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