river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan Ramirez (JIRA)" <j...@apache.org>
Subject [jira] Created: (RIVER-93) add InterruptThreadAction utility
Date Fri, 27 Jul 2007 13:33:18 GMT
add InterruptThreadAction utility

                 Key: RIVER-93
                 URL: https://issues.apache.org/jira/browse/RIVER-93
             Project: River
          Issue Type: New Feature
          Components: com_sun_jini_action
    Affects Versions: jtsk_2.0
            Reporter: Juan Ramirez
            Priority: Minor

Bugtraq ID [854295| http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=854295 ]

As much as the submitter is skeptical of the general use of thread interrupts, it seems that
there are enough places in which setting a thread's interrupted status (including the current
thread's) is justified-- and in which a *.doPrivileged is likely to be necessary-- that another
convenience PrivilegedAction class in the com.sun.jini.action package for invoking a Thread's
interrupt() method might be useful.

Note that since J2SE 5.0, Thread.interrupt() is specified to NOT require a permission to interrupt
the current thread-- therefore, code written to depend on 5.0 or later no longer needs a doPrivileged
block to interrupt the current thread, presumably making this utility less needed.

Seems useful, although not required for GA.  Should this be in com.sun.jini.action or com.sun.jini.thread?

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

View raw message