Skip to content

Commit 73f7c6a

Browse files
committedMar 14, 2025
dep: update minimum java version from 1.8 to 1.9
Github Actions started failing on jruby-head builds this week with an error message like: ``` bad class file: /home/runner/.rubies/jruby-head/lib/jruby.jar(/org/jruby/Ruby.class) class file has wrong version 65.0, should be 61.0 ``` If I understand correctly, the class file version is correlated with the JDK version, so I'm trying this to see if it fixes the issues with jruby-head. See related commit 86652b1 which updated the minimum from 1.7 to 1.8 in 2024, and 08e5560 which updated the minimum from 1.6 to 1.7 in 2020.
1 parent 3ff6b8e commit 73f7c6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎rakelib/extensions.rake

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ if java?
331331

332332
ext.ext_dir = "ext/java"
333333
ext.lib_dir = "lib/nokogiri"
334-
ext.source_version = "1.8"
335-
ext.target_version = "1.8"
334+
ext.source_version = "1.9"
335+
ext.target_version = "1.9"
336336
ext.classpath = ext.gem_spec.files.select { |path| File.fnmatch?("**/*.jar", path) }.join(":")
337337
ext.debug = true if ENV["JAVA_DEBUG"]
338338
end

0 commit comments

Comments
 (0)