harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2675) [classlib][luni]ProcessBuilder.command returns a list that does not support add() operation but RI does.
Date Thu, 14 Dec 2006 07:06:21 GMT
[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

        

Mime
View raw message