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

jrubyc command doesn't work on 9.0.0.0-pre1 #2499

Closed
yuki24 opened this issue Jan 22, 2015 · 4 comments
Closed

jrubyc command doesn't work on 9.0.0.0-pre1 #2499

yuki24 opened this issue Jan 22, 2015 · 4 comments
Labels
Milestone

Comments

@yuki24
Copy link
Contributor

@yuki24 yuki24 commented Jan 22, 2015

on 9.0.0.0-pre1:

$ ruby -v
jruby 9.0.0.0.pre1 (2.2.0p0) 2015-01-22 1e31288 Java HotSpot(TM) 64-Bit Server VM 24.55-b03 on 1.7.0_55-b13 +jit [darwin-x86_64]
$ jrubyc --help
NameError: missing class or uppercase package name (`org.jruby.compiler.impl.StandardASMCompiler'), caused by (NameError) cannot load Java class org.jruby.compiler.impl.StandardASMCompiler
  get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
                      method_missing at file:/Users/yuki/.rvm/rubies/jruby-9.0.0.0-pre1/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14
                              (root) at /Users/yuki/.rvm/rubies/jruby-9.0.0.0-pre1/lib/ruby/stdlib/jruby/compiler.rb:10
                              (root) at /Users/yuki/.rvm/rubies/jruby-9.0.0.0-pre1/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
                             require at org/jruby/RubyKernel.java:954
                             require at /Users/yuki/.rvm/rubies/jruby-9.0.0.0-pre1/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
                              (root) at /Users/yuki/.rvm/rubies/jruby-9.0.0.0-pre1/lib/ruby/stdlib/jruby/jrubyc.rb:1
                             require at org/jruby/RubyKernel.java:954
                              (root) at /Users/yuki/.rvm/rubies/jruby-9.0.0.0-pre1/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
                          __script__ at /Users/yuki/.rvm/rubies/jruby-9.0.0.0-pre1/bin/jrubyc:3

on 1.7.18:

$ ruby -v
jruby 1.7.18 (1.9.3p551) 2014-12-22 625381c on Java HotSpot(TM) 64-Bit Server VM 1.7.0_55-b13 +jit [darwin-x86_64]
$ jrubyc --help
jrubyc [options] (FILE|DIRECTORY)

  -d, --dir DIR            Use DIR as the base path
  -p, --prefix PREFIX      Prepend PREFIX to the file path and package. Default is no prefix.
  -t, --target TARGET      Output files to TARGET directory
  -J OPTION                Pass OPTION to javac for javac compiles
  -5                        --jdk5
                           Generate JDK 5 classes (version 49)
      --java               Generate .java classes to accompany the script
      --javac              Generate and compile .java classes to accompany the script
  -c CLASSPATH,            Add a jar to the classpath for building
      --classpath
      --sha1               Compile to a class named using the SHA1 hash of the source file
      --handles            Also generate all direct handle classes for the source file
      --verbose            Log verbose output while compile

Am I missing something or it's a bug?

@headius
Copy link
Member

@headius headius commented Jan 22, 2015

It's known to be broken at the moment. The JIT is completely different and does not yet support ahead-of-time compilation.

@rtyler rtyler added the JRuby 9000 label Jan 22, 2015
@yuki24
Copy link
Contributor Author

@yuki24 yuki24 commented Jan 23, 2015

@headius Thanks for the info!

@yuki24
Copy link
Contributor Author

@yuki24 yuki24 commented Apr 12, 2015

@headius I realized that this started working. Do you think we can close this issue or there's still some work that needs to be done?

@enebo enebo added this to the JRuby 9.0.0.0 milestone Jul 15, 2015
@enebo
Copy link
Member

@enebo enebo commented Jul 15, 2015

This has been fixed for a while...resolving.

@enebo enebo closed this Jul 15, 2015
kares added a commit to kares/jruby that referenced this issue Nov 28, 2015
…oc sub-class

also revert the protected block field in RubyProc introduced due previous hack

as advised in jruby#2499
kares added a commit to kares/jruby that referenced this issue Nov 29, 2015
…oc sub-class

also revert the protected block field in RubyProc introduced due previous hack

as advised in jruby#2499
kares added a commit to kares/jruby that referenced this issue Dec 1, 2015
kares added a commit to kares/jruby that referenced this issue Dec 1, 2015
kares added a commit that referenced this issue Dec 2, 2015
…oc sub-class

also revert the protected block field in RubyProc introduced due previous hack

as advised in #2499
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.