harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2138) [classlib][luni]different behavior when delete file
Date Thu, 25 Jun 2009 19:46:07 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Hindess closed HARMONY-2138.
---------------------------------


Closing as the fix has been verified.



> [classlib][luni]different behavior when delete file
> ---------------------------------------------------
>
>                 Key: HARMONY-2138
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2138
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tony Wu
>            Assignee: Paulex Yang
>         Attachments: patch.diff
>
>
> this testcase passed on RI but failed on harmony.
>     
> public void testDeleteJarFileUsingURLConnection() throws Exception {
>         String jarFileName = "file.jar";
>         String entry = "text.txt";
>         File file = new File(jarFileName);
>         FileOutputStream jarFile = new FileOutputStream(jarFileName);
>         JarOutputStream out = new JarOutputStream(new BufferedOutputStream(
>                 jarFile));
>         JarEntry jarEntry = new JarEntry(entry);
>         out.putNextEntry(jarEntry);
>         out.write(new byte[] { 'a', 'b', 'c' });
>         out.close();
>         URL url = new URL("jar:file:" + jarFileName + "!/" + entry);
>         URLConnection conn = url.openConnection();
>         conn.setUseCaches(false);
>         InputStream is = conn.getInputStream();
>         is.close();
>         assertTrue(file.delete());
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message