harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3776) [classlib][beans]Beans.instantiate() should throw IOException if problem occurs during processing serialization file.
Date Wed, 02 May 2007 05:59:15 GMT

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

Stepan Mishura commented on HARMONY-3776:
-----------------------------------------

I've applied patch from HARMONY-3792 to fix commit r533960.
The patch addes "${hy.beans}" to classpath otherwise the test fails with ClassNotFoundException.

Please check if the fix works for you. 

>From my point of view I'd recommend to not create corrupted file in the module's root
each time but to create it once and place to the directory that is included to the classpath
(say, ${hy.beans.src.test.resources}/serialization/org/apache/harmony/beans/tests/java/beans)

Thanks,
Stepan.

> [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
>         Assigned To: Tim Ellison
>         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