Skip to content

Commit

Permalink
Workaround for warbler incompatibility: jruby/warbler#508
Browse files Browse the repository at this point in the history
  • Loading branch information
rammpeter committed Feb 8, 2022
1 parent 3a2fa96 commit 54d8c71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/warble.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# Workaround to fix: NoMethodError: undefined method `new_ostruct_member' for No value for 'public' found
# https://github.com/jruby/warbler/issues/508
# TODO: Remove after new_ostruct_member problem ist fixed in warbler
#
# Workaround works for warbler but not for Panorama.war
# Alternative: build war file on Linux with jRuby 9.2.2.0
=begin
class Warbler::Traits::War::WebxmlOpenStruct
def new_ostruct_member(name)
unless @table.key?(name) || is_method_protected!(name)
Expand All @@ -18,7 +22,7 @@ def new_ostruct_member(name)
end
end
end

=end

# Warbler web application assembly configuration file
Warbler::Config.new do |config|
Expand Down

0 comments on commit 54d8c71

Please sign in to comment.