Issue Details (XML | Word | Printable)

Key: JRUBY-349
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ola Bini
Reporter: Damian Steer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

ENV isn't getting the environment, even on Java 5 (StringOnlyRubyHash issue?)

Created: 11/Dec/06 05:53 PM   Updated: 30/Apr/07 03:12 AM   Resolved: 21/Dec/06 08:45 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: JRuby 0.9.8

Time Tracking:
Not Specified

File Attachments: 1. Text File env.patch (3 kB)

Environment: Java


 Description  « Hide

The following does not work:


jruby -e 'puts ENV["HOME"]'

{/code}

But on java 5 OSEnvironment#getSystemProperties does return the right values, so presumably (?)StringOnlyRubyHash isn't initalized correctly from this.



Damian Steer added a comment - 13/Dec/06 01:06 PM

Patch working for me on 1.4 and 5. Note that this add the following test to testEnv.rb:

test_ok(ENV['HOME'], "Reading external environment")

That should be ENV['HOME'] || ENV['Something from windows'] I assume.


Damian Steer made changes - 13/Dec/06 01:06 PM
Field Original Value New Value
Attachment env.patch [ 24641 ]
Ola Bini made changes - 21/Dec/06 08:45 AM
Fix Version/s JRuby 0.9.3 [ 13069 ]
Status Open [ 1 ] Resolved [ 5 ]
Assignee Thomas E Enebo [ enebo ] Ola Bini [ olagus ]
Resolution Fixed [ 1 ]
Charles Oliver Nutter made changes - 30/Apr/07 03:12 AM
Status Resolved [ 5 ] Closed [ 6 ]