You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Kevin Zhou (JIRA)" <ji...@apache.org> on 2009/05/27 09:52:45 UTC

[jira] Updated: (HARMONY-6215) [classlib][beans] java.beans.XMLEncoder.writeExpression(Expression null) should throw NullPointerException

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

Kevin Zhou updated HARMONY-6215:
--------------------------------

    Attachment: HARMONY-6215.diff

Would you please help to try it?

> [classlib][beans] java.beans.XMLEncoder.writeExpression(Expression null) should throw NullPointerException
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6215
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6215
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M9
>            Reporter: Kevin Zhou
>             Fix For: 5.0M10
>
>         Attachments: HARMONY-6215.diff
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Given a test case [1], RI passes it while HARMONY doesn't. 
> [1] Test Case:
> public void test_XMLEncoder_writeExpression() {
>     XMLEncoder xmlEncoder = new XMLEncoder((OutputStream) null);
>     try {
>         xmlEncoder.writeExpression((Expression) null);
>         fail("should throw NullPointerException");
>     } catch (NullPointerException e) {
>         // Expected
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.