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] Resolved: (HARMONY-2453) [classlib][luni] Environment provides inconsistent map on Windows
Date Fri, 20 Apr 2007 14:06:15 GMT

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

Alexey Petrenko resolved HARMONY-2453.
--------------------------------------

    Resolution: Fixed

Elena,

I thought again! :)
I think that we can simplify the patch to the follwoing expression:
=== cut ===
int separator = envStrings[i].indexOf("=", 1);
=== cut ===

The variable always has a name. So we can search the "=" character from the second place in
the string.
Am I right?

Alexey, please verify that you are happy with the patch.

> [classlib][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