tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martijn Stellinga (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Created: (TAPESTRY-230) Ignored interruptedException prevents Janitorthread termination
Date Thu, 25 Nov 2004 14:21:21 GMT
Ignored interruptedException prevents Janitorthread termination
---------------------------------------------------------------

         Key: TAPESTRY-230
         URL: http://nagoya.apache.org/jira/browse/TAPESTRY-230
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Versions: 3.0, 3.0.1    
 Environment: Tomcat 4 & 5 (on Windows platform)
    Reporter: Martijn Stellinga
    Priority: Minor


The org.apache.tapestry.util.JanitorThread uses a waitForNextPass() function that makes it
sleep for 30 seconds and then do another pass.
In this method an InterruptedException is caught and ignored. This prevents the thread from
terminating normally when, for instance, a context is reloaded. See also http://java.sun.com/j2se/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html.

I think it would be better if the while-loop in the run() method exited when the wait() in
waitfornextpass() method was interrupted.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message