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] Created: (HARMONY-3776) [classlib][beans]Beans.instantiate() should throw IOException if problem occurs during processing serialization file.
Date Fri, 27 Apr 2007 03:53:15 GMT
[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


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