Skip to content

jrubyc blows with NPE #2840

@MSNexploder

Description

@MSNexploder
cat test.rb

puts 'test'
jrubyc --verbose test.rb

Compiling test.rb
java/lang/reflect/Method.java:497:in `invoke': java.lang.NullPointerException
    from /Users/stefan/projects/jruby/lib/ruby/stdlib/jruby/compiler.rb:162:in `block in compile_files_with_options'
    from org/jruby/RubyProc.java:310:in `call'
    from /Users/stefan/projects/jruby/lib/ruby/stdlib/jruby/compiler.rb:236:in `block in compile_files_with_options'
    from org/jruby/RubyArray.java:1570:in `each'
    from /Users/stefan/projects/jruby/lib/ruby/stdlib/jruby/compiler.rb:220:in `compile_files_with_options'
    from /Users/stefan/projects/jruby/lib/ruby/stdlib/jruby/compiler.rb:94:in `compile_argv'
    from /Users/stefan/projects/jruby/bin/jrubyc:5:in `<top>'
jruby -v

jruby 9.0.0.0-SNAPSHOT (2.2.1) 2015-04-16 245cad9 Java HotSpot(TM) 64-Bit Server VM 25.40-b25 on 1.8.0_40-b25 +jit [darwin-x86_64]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions