Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRuby 9.0.0.0.pre1 - uninitialized constant DATA #2575

Closed
Ryccoo opened this issue Feb 7, 2015 · 2 comments
Closed

JRuby 9.0.0.0.pre1 - uninitialized constant DATA #2575

Ryccoo opened this issue Feb 7, 2015 · 2 comments

Comments

@Ryccoo
Copy link

Ryccoo commented Feb 7, 2015

I could not find if this was reported before so I want to ask if DATA is missing on purpose or its a bug ?

Jruby 1.6.8 and 1.7.12 contain DATA constant but JRuby 9.0.0.0.pre1 end with:

NameError: uninitialized constant DATA
  const_missing at org/jruby/RubyModule.java:2935
     __script__ at bm_app_erb.rb:7

Source of bm_app_erb.rb can be found at http://rubybench-rycco.rhcloud.com/implementations/bm_app_erb

@enebo enebo added this to the JRuby 9.0.0.0 milestone Feb 7, 2015
@enebo enebo modified the milestone: JRuby 9.0.0.0 Jul 14, 2015
@peperomeu
Copy link

In jruby 9.0.1.0 this error still exists.

If I execute this program

#coding: utf-8

DATA.each { |l| puts l }

__END__
ONE
TWO
THREE

it works with Ruby MRI, but not with jRuby.

NameError: uninitialized constant DATA
  const_missing at org/jruby/RubyModule.java:3166
          <top> at test_data.rb:3

The version I've installed:

jruby 9.0.1.0 (2.2.2) 2015-09-02 583f336 Java HotSpot(TM) 64-Bit Server VM 25.45-b02 on 1.8.0_45-b15 +jit [Windows 7-amd64]

ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]

@kares
Copy link
Member

kares commented May 23, 2017

ONE
TWO
THREE

output under jruby 9.1.9.0 (2.3.3) 2017-05-15 28aa830 Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [linux-x86_64]

@kares kares closed this as completed May 23, 2017
@kares kares added this to the JRuby 9.1.8.0 milestone May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants