harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2453) [luni] Environment provides inconsistent map on Windows
Date Fri, 23 Mar 2007 15:43:32 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483636
] 

Alexey Petrenko commented on HARMONY-2453:
------------------------------------------

Elena,

I would say that it will be better to change the following expression
!envStrings[i].startsWith("=") to env.Strings[i].charAt(0) != '='
This should be better from the performance point of view. 
What do you think?

> [luni] Environment provides inconsistent map on Windows
> -------------------------------------------------------
>
>                 Key: HARMONY-2453
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2453
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: WinXP, Win2003 Server
>            Reporter: Alexey Varlamov
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: H-2453.patch, H-2453_remove_SystemTest_from_excluded.patch
>
>
> The following test fails often on WIndows:
>     public void testGetenv() {
>         Map<String, String> env = System.getenv();
>         for (String key : env.keySet()) {
>             assertEquals("Value of " + key, env.get(key), System.getenv(key));
>         }
>     }
> junit.framework.ComparisonFailure: Value of  expected:&lt;G:=G:\avarlamo\harmony\2commit&gt;
but was:&lt;null&gt;
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at java.lang.SystemTest.testGetenv(SystemTest.java:49)

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