harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-3916) [classlib][io] Harmony throws unexpected NotActiveException when there's a ObjectInputValidation registered
Date Tue, 22 May 2007 10:13:17 GMT

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

Alexei Zakharov resolved HARMONY-3916.
--------------------------------------

    Resolution: Fixed

Thanks for the patch Andrew. I don't see any new failures after applying your patch so I've
committed it at the revision 540515. Please verify it was applied as expected.

> [classlib][io] Harmony throws unexpected NotActiveException when there's a ObjectInputValidation
registered 
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3916
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3916
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrew Zhang
>         Assigned To: Alexei Zakharov
>         Attachments: Harmony-3916.diff
>
>
> Following test case reproduces the problem:
> public void test() throws Exception {
>        ByteArrayOutputStream baos = new ByteArrayOutputStream();
>         ObjectOutputStream oos = new ObjectOutputStream(baos);
>         oos.writeObject(new RegisterValidationClass());
>         oos.close();
>         ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
>         ObjectInputStream fis = new ObjectInputStream(bais);
>         // should not throw NotActiveException
>         fis.readObject();
>     }
>     
>     private static class RegisterValidationClass implements Serializable {
>         private A a = new A();
>         private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
{
>             stream.defaultReadObject();
>             stream.registerValidation(new MockObjectInputValidation(), 0);
>         }
>     }
>     
>     private static class MockObjectInputValidation implements ObjectInputValidation {
>         public void validateObject() throws InvalidObjectException {
>             
>         }
>     }

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