JRuby

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: JRuby 0.9.8
  • Component/s: None
  • Labels:
    None
  • Environment:
    Java
  • Number of attachments :
    1

Description

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.

Activity

Hide
Damian Steer added a comment -

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.

Show
Damian Steer added a comment - 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: