Skip to content

Commit d52fb1b

Browse files
committed
Warn if not JDK8
1 parent 071f15c commit d52fb1b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/jruby_art/runner.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ def show_help
152152

153153
def show_version
154154
require 'erb'
155+
require_relative 'helpers/version_error'
156+
warn 'JDK8 is preferred' unless ENV_JAVA['java.specification.version'] == '1.8'
155157
template = ERB.new <<-EOF
156158
JRubyArt version <%= JRubyArt::VERSION %>
157159
Ruby version <%= RUBY_VERSION %>

library/color_group/color_group.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def initialize(p5cols)
99
end
1010

1111
def self.from_web_array(web)
12-
ColorGroup.new(ColorUtil.web_array(web))
12+
ColorGroup.new(ColorUtil.web_array(web.to_java(:string)))
1313
end
1414

1515
def shuffle!

0 commit comments

Comments
 (0)