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 05:53:15 UTC

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

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


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

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-3776:
------------------------------------

    Assignee: Tim Ellison

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


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

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-3776.
----------------------------------

    Resolution: Fixed

Thanks Leo.

Patch applied to BEANS module at repo revision r533960.

Please check it was applied as you expected.


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


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

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Patch Info: [Patch Available]

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