harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3318) [classlib[awt] java.awt.Frame.setTitle(String) does not treat null as empty string.
Date Wed, 07 Mar 2007 13:17:24 GMT

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

Andrey Pavlenko updated HARMONY-3318:
-------------------------------------

    Attachment: HARMONY-3318-FrameRTest.patch
                HARMONY-3318-Window.patch

This patch fixes the issue.

> [classlib[awt] java.awt.Frame.setTitle(String) does not treat null as empty string.
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-3318
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3318
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Robert Hu
>            Priority: Minor
>         Attachments: HARMONY-3318-FrameRTest.patch, HARMONY-3318-Window.patch
>
>
> According to spec, java.awt.Frame.setTitle(String) can accept null as argument, "a null
value is treated as an empty string, ""."   But Harmony violate it and return null when getting
the title just set as null.
> Test code to re-produce:
>         Frame frame = new Frame();        
>         frame.setTitle(null);
>         assertEquals("", frame.getTitle());
> RI: Pass
> Harmony: junit.framework.ComparisonFailure: expected:<> but was:<null>

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