You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Robert Hu (JIRA)" <ji...@apache.org> on 2007/03/07 09:28:24 UTC

[jira] Created: (HARMONY-3318) [classlib[awt] java.awt.Frame.setTitle(String) does not treat null as empty string.

[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


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.


[jira] Assigned: (HARMONY-3318) [classlib[awt] java.awt.Frame.setTitle(String) does not treat null as empty string.

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

Alexei Zakharov reassigned HARMONY-3318:
----------------------------------------

    Assignee: Alexei Zakharov

> [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
>         Assigned To: Alexei Zakharov
>            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.


[jira] Resolved: (HARMONY-3318) [classlib[awt] java.awt.Frame.setTitle(String) does not treat null as empty string.

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

Alexei Zakharov resolved HARMONY-3318.
--------------------------------------

    Resolution: Fixed

Thanks Andrey and Robert. Patches were applied at the revision 518997. Please verify it was applied as expected.

> [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
>         Assigned To: Alexei Zakharov
>            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.


[jira] Updated: (HARMONY-3318) [classlib[awt] java.awt.Frame.setTitle(String) does not treat null as empty string.

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


[jira] Closed: (HARMONY-3318) [classlib[awt] java.awt.Frame.setTitle(String) does not treat null as empty string.

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

Alexei Zakharov closed HARMONY-3318.
------------------------------------


Verified by Andrey.

> [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
>         Assigned To: Alexei Zakharov
>            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.


[jira] Commented: (HARMONY-3318) [classlib[awt] java.awt.Frame.setTitle(String) does not treat null as empty string.

Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482051 ] 

Andrey Pavlenko commented on HARMONY-3318:
------------------------------------------

The patches have been applied as expected. Thanks.

> [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
>         Assigned To: Alexei Zakharov
>            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.