We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[subbu@earth lib] jruby /tmp/boo.rb [nil, 10] [subbu@earth lib] jruby -X-C /tmp/boo.rb ["NoMethodError", 10] [subbu@earth lib] cat /tmp/boo.rb class C def update(v); self.v = v; end
protected attr_accessor :v end
a = [] begin a << C.new.v rescue => e a << e.class.name end
begin a << C.new.update(10) rescue => e a << e.class.name end
p a
The text was updated successfully, but these errors were encountered:
This might be related to #2205
Sorry, something went wrong.
This seems fixed. Identical output with -X+C, -X-C and default jruby run
No branches or pull requests
[subbu@earth lib] jruby /tmp/boo.rb
[nil, 10]
[subbu@earth lib] jruby -X-C /tmp/boo.rb
["NoMethodError", 10]
[subbu@earth lib] cat /tmp/boo.rb
class C
def update(v); self.v = v; end
protected
attr_accessor :v
end
a = []
begin
a << C.new.v
rescue => e
a << e.class.name
end
begin
a << C.new.update(10)
rescue => e
a << e.class.name
end
p a
The text was updated successfully, but these errors were encountered: