setup a SecurityManager from JRuby
----------------------------------
Key: JRUBY-5582
URL: http://jira.codehaus.org/browse/JRUBY-5582
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.6RC3, JRuby 1.5.6
Environment: suppose any - reproduced on Java HotSpot(TM) Server VM
1.6.0_24
Reporter: Karol Bucek
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
{code}
require 'java'
class JRubySecurityManager < java.lang.SecurityManager
def checkPermission( perm )
puts perm.inspect
end
end
java.lang.System.setSecurityManager( JRubySecurityManager.new )
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email