harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3776) [classlib][beans]Beans.instantiate() should throw IOException if problem occurs during processing serialization file.
Date Fri, 27 Apr 2007 05:07:15 GMT

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


Mime
View raw message