Regression processing __END__ between JRuby 1.4 and 1.5
-------------------------------------------------------
Key: JRUBY-4790
URL: http://jira.codehaus.org/browse/JRUBY-4790
Project: JRuby
Issue Type: Bug
Components: Compiler
Affects Versions: JRuby 1.5
Reporter: Tony Arcieri
I am specifically encountering this problem with the netaddr gem, which worked
correctly under JRuby 1.4.x:
jruby-1.4.0 > require 'rubygems'
=> true
jruby-1.4.0 > require 'netaddr'
=> true
However, under JRuby 1.5.0, it seems the __END__ token (which is oddly used at
EOF in the case of this gem) is not processed correctly, and is interpreted as
a method identifier instead of a parser directive, at least in the case of this
particular gem:
t...@virtualmac:~/src/jruby-1.5.0/bin$ ./jirb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'netaddr'
NameError: undefined local variable or method `__END__' for main:Object
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email