JRuby

PROGRAM_NAME is not available in the modules included via -r command line option

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1, JRuby 1.1.1, JRuby 1.1.2
  • Fix Version/s: JRuby 1.1.3
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

It works with ruby and worked in jruby 1.0.x, but it does not work in jruby 1.1.x
Eclipse DLTK ruby debugger uses this variable and this issue prevent it from working with JRuby 1.1.x

Please see the example:

programName.rb
puts 'PROGRAM_NAME=' + $PROGRAM_NAME.to_s

And output in different versions:

C:\>ruby -r programName.rb programName.rb
PROGRAM_NAME=programName.rb
PROGRAM_NAME=programName.rb

C:\>C:\jruby-1.0.3\bin\jruby.bat -r programName.rb programName.rb
PROGRAM_NAME=programName.rb
PROGRAM_NAME=programName.rb

C:\>C:\jruby-1.1.2\bin\jruby.bat -r programName.rb programName.rb
PROGRAM_NAME=
PROGRAM_NAME=programName.rb

Activity

Hide
Vladimir Sizikov added a comment -

Fixed in rev r7017 on trunk. Thanks for the report.

Show
Vladimir Sizikov added a comment - Fixed in rev r7017 on trunk. Thanks for the report.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: