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 2006/12/14 08:06:21 UTC

[jira] Created: (HARMONY-2675) [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.

[classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.
--------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2675
                 URL: http://issues.apache.org/jira/browse/HARMONY-2675
             Project: Harmony
          Issue Type: Bug
            Reporter: Leo Li


Here is a testcase:

public void testProcessBuilder()
    {
        ProcessBuilder processBuilder = new ProcessBuilder("AAA");
        processBuilder.command("BBB","CCC");
        List<String> list = processBuilder.command();
        list.add("DDD");
        String[] command = new String[3];
        list.toArray(command);
        assertTrue(Arrays.equals(new String[]{"BBB","CCC","DDD"}, command));
    }

RI passes.
Harmony fails.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2675) [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2675?page=comments#action_12460111 ] 
            
Leo Li commented on HARMONY-2675:
---------------------------------

Verified. Thank you.

> [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2675
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2675
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Richard Liang
>         Attachments: patch-2675.diff
>
>
> Here is a testcase:
> public void testProcessBuilder()
>     {
>         ProcessBuilder processBuilder = new ProcessBuilder("AAA");
>         processBuilder.command("BBB","CCC");
>         List<String> list = processBuilder.command();
>         list.add("DDD");
>         String[] command = new String[3];
>         list.toArray(command);
>         assertTrue(Arrays.equals(new String[]{"BBB","CCC","DDD"}, command));
>     }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-2675) [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2675?page=all ]

Richard Liang closed HARMONY-2675.
----------------------------------


Verified by Leo.

> [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2675
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2675
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Richard Liang
>         Attachments: patch-2675.diff
>
>
> Here is a testcase:
> public void testProcessBuilder()
>     {
>         ProcessBuilder processBuilder = new ProcessBuilder("AAA");
>         processBuilder.command("BBB","CCC");
>         List<String> list = processBuilder.command();
>         list.add("DDD");
>         String[] command = new String[3];
>         list.toArray(command);
>         assertTrue(Arrays.equals(new String[]{"BBB","CCC","DDD"}, command));
>     }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2675) [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2675?page=all ]

Leo Li updated HARMONY-2675:
----------------------------

    Attachment: patch-2675.diff

Will somebody try this patch?

> [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2675
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2675
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Attachments: patch-2675.diff
>
>
> Here is a testcase:
> public void testProcessBuilder()
>     {
>         ProcessBuilder processBuilder = new ProcessBuilder("AAA");
>         processBuilder.command("BBB","CCC");
>         List<String> list = processBuilder.command();
>         list.add("DDD");
>         String[] command = new String[3];
>         list.toArray(command);
>         assertTrue(Arrays.equals(new String[]{"BBB","CCC","DDD"}, command));
>     }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-2675) [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2675?page=all ]

Richard Liang reassigned HARMONY-2675:
--------------------------------------

    Assignee: Richard Liang

> [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2675
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2675
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Richard Liang
>         Attachments: patch-2675.diff
>
>
> Here is a testcase:
> public void testProcessBuilder()
>     {
>         ProcessBuilder processBuilder = new ProcessBuilder("AAA");
>         processBuilder.command("BBB","CCC");
>         List<String> list = processBuilder.command();
>         list.add("DDD");
>         String[] command = new String[3];
>         list.toArray(command);
>         assertTrue(Arrays.equals(new String[]{"BBB","CCC","DDD"}, command));
>     }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-2675) [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2675?page=all ]

Richard Liang resolved HARMONY-2675.
------------------------------------

    Resolution: Fixed

Hello Leo,

The patch has been applied at revision r489034, thanks a lot for this enhancement. Would you please verify the issue is fully fixed as you expected.

Best regards,
Richard

> [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2675
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2675
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Richard Liang
>         Attachments: patch-2675.diff
>
>
> Here is a testcase:
> public void testProcessBuilder()
>     {
>         ProcessBuilder processBuilder = new ProcessBuilder("AAA");
>         processBuilder.command("BBB","CCC");
>         List<String> list = processBuilder.command();
>         list.add("DDD");
>         String[] command = new String[3];
>         list.toArray(command);
>         assertTrue(Arrays.equals(new String[]{"BBB","CCC","DDD"}, command));
>     }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira