We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f65e7b9 commit 5b0e7b9Copy full SHA for 5b0e7b9
1 file changed
spec/warbler/task_spec.rb
@@ -126,8 +126,9 @@ def run_task(t)
126
127
it "should allow bytecode version in config" do
128
config.features << "compiled"
129
- config.bytecode_version = JRUBY_VERSION > "10" ? 21 : 8
130
- bytecode_version = [0x00, JRUBY_VERSION > "10" ? 0x41 : 0x34]
+ java_version = org.jruby.RubyInstanceConfig::JAVA_VERSION
+ config.bytecode_version = java_version - 44
131
+ bytecode_version = [0x00, java_version]
132
silence { run_task "warble" }
133
134
Warbler::ZipSupport.open("#{config.jar_name}.war") do |zf|
0 commit comments