Re: [cp-patches] FYI: [generics] Fix for System.getenv bug

2006-06-04 Thread Archie Cobbs
Andrew John Hughes wrote: I'm committing the patch which fixes a bug in System.getenv() when an environment variable has an empty value. Not part of your patch (code was there before) but: String[] parts = pair.split("="); Shouldn't this be "pair.split("=", 1)" instead? E.g. wha

[cp-patches] FYI: [generics] Fix for System.getenv bug

2006-06-04 Thread Andrew John Hughes
I'm committing the patch which fixes a bug in System.getenv() when an environment variable has an empty value. Changelog: 2006-06-04 Andrew John Hughes <[EMAIL PROTECTED]> * java/lang/System.java: (getenv()): Handle cases where split only returns an array of size 1. --