Skip to content
New issue

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

Setup a SecurityManager from JRuby #2395

Closed
rjnienaber opened this issue Dec 30, 2014 · 1 comment
Closed

Setup a SecurityManager from JRuby #2395

rjnienaber opened this issue Dec 30, 2014 · 1 comment
Milestone

Comments

@rjnienaber
Copy link

From: http://jira.codehaus.org/browse/JRUBY-5582. Fails on JRuby 1.7.18 but appears to work on JRuby 9000.

when I attempt to install a SecurityManager from JRuby it fails.

if I understand correctly the problem is that while the java proxy is being generated for the

checkPermission call it triggers another checkPermission call ...
posted this on the forum bot got no answer http://www.ruby-forum.com/topic/1245322
the failing sample code (including the stack trace) is available here: https://gist.github.com/862023

require 'java'

class JRubySecurityManager < java.lang.SecurityManager
  def checkPermission( perm )
    puts perm.inspect
  end
end

java.lang.System.setSecurityManager( JRubySecurityManager.new )
@enebo enebo added this to the Won't Fix milestone May 16, 2017
@enebo
Copy link
Member

enebo commented May 16, 2017

1.7.x is EOL and this will not get fixed. Marking WONTFIX

@enebo enebo closed this as completed May 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants