Skip to content

Possible typo in lib/ruby/stdlib/jruby/compiler.rb:61 #8795

Description

@rammpeter

Environment Information

  • JRuby version: 9.4.12.0, 10.0.0.0
    Problem is independent from environment

Expected Behavior
Adding Java options to jrubyc or JRuby::Compiler.compile_argv by "-J....." should use this options for javac call.

Actual Behavior
TypeError:no implicit conversion of Symbol into Integer at lib/ruby/stdlib/jruby/compiler.rb:61

It seems that there's a typo: "o" instead of "options"

56      opts.on("-t", "--target TARGET", "Output files to TARGET directory") do |target|
57        options[:target] = target
58      end

60      opts.on("-J OPTION", "Pass OPTION to javac for javac compiles") do |o|
61        o[:javac_options] << o
62      end

64      opts.on("--java", "Generate Java classes (.java) for a script containing Ruby class definitions") do
65        options[:java] = true
66      end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions