-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels