You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2007/04/27 07:07:15 UTC

[jira] Updated: (HARMONY-3776) [classlib][beans]Beans.instantiate() should throw IOException if problem occurs during processing serialization file.

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

Leo Li updated HARMONY-3776:
----------------------------

    Attachment: patch-3776.diff

Hi, all:
      Will somebody try the patch?

Thanks,
Leo.

> [classlib][beans]Beans.instantiate() should throw IOException if  problem occurs  during processing serialization file.
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3776
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3776
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Attachments: patch-3776.diff
>
>
> Here is an example:
> public void test_instantiate() throws Exception {
>         final String BEANS_NAME = "TestBean";
>         File file = new File(BEANS_NAME + ".ser");
>         file.deleteOnExit();
>         FileOutputStream fout = new FileOutputStream(file);
>         fout.close();
>         file.delete();
>         try {
>             Beans.instantiate(null, BEANS_NAME);
>             fail("should throw IOException.");
>         } catch (IOException e) {
>             //expected
>         }
>     }
> RI passes.
> Harmony fails.

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