Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-496

[FIX] incorrect use of Thread.interrupted in ThreadGroupJoin.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5
    • 1.6-dev
    • Miscellaneous
    • None
    • WebSphere Studio Application Developer, WAS 5.1 test environment

    Description

      org.apache.jetspeed.daemon.impl.util.ThreadGroupJoin has a line that attempts to determine the interrupt status of an entry in an array of Threads:

      if ( !threads[i].interrupted() )

      Thread.interrupted() is a static method that only checks the status of the current thread. The correct syntax should be:

      if ( !threads[i].isInterrupted() )

      Attachments

        Activity

          People

            Unassigned Unassigned
            g051051 Dan Price
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: