mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andres Martinez Quijano (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRMINA-462) Thread.setName causes SecurityException in sandbox contexts (such as Applets)
Date Wed, 24 Oct 2007 15:50:50 GMT
Thread.setName causes SecurityException in sandbox contexts (such as Applets)
-----------------------------------------------------------------------------

                 Key: DIRMINA-462
                 URL: https://issues.apache.org/jira/browse/DIRMINA-462
             Project: MINA
          Issue Type: Improvement
          Components: Core
            Reporter: Andres Martinez Quijano
            Priority: Trivial


In several places (Executors and Connectors) it is called the method Thread.setName. 
In an applet context this is forbidden by the sandbox, and a SecurityException arises.

Provided is a patch that creates the class org.apache.mina.util.ThreadUtil which encapsulates
the method call Thread.setName in a try/catch block and logs a warning if a SecurityException
is thrown, and modifies all current calls to Thread.setName to use the ThreadUtil class


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message