RVM
  1. RVM
  2. RVM-62

Interrupted exceptions are generated in the caller of Thread.interrupt instead of by the thread throwing the interrupted exception

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.0, 2.9.0.1
    • Fix Version/s: 2.9.2
    • Labels:
      None
    • Environment:
      All
    • Number of attachments :
      0

      Description

      An interrupted method should throw an exception with the stack trace populated from the thread that is interrupted, such as:

      java.lang.InterruptedException: sleep interrupted
      at java.lang.Thread.sleep(Native Method)
      at test$1.run(test.java:5)

      Our interrupted exceptions are currently generated in the context of the thread interrupting the others execution.

        Activity

        Hide
        Ian Rogers added a comment -

        Perversely ThreadDeath errors reported by stopping (deprecated) a thread give a stack trace from the point the stop was called.

        Show
        Ian Rogers added a comment - Perversely ThreadDeath errors reported by stopping (deprecated) a thread give a stack trace from the point the stop was called.
        Peter Donald made changes -
        Field Original Value New Value
        Fix Version/s 2.9.2 [ 13599 ]
        Fix Version/s 2.9.1 [ 13529 ]
        Hide
        Ian Rogers added a comment -

        Fixed as of r13106.

        Show
        Ian Rogers added a comment - Fixed as of r13106.
        Ian Rogers made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Ian Rogers
            Reporter:
            Ian Rogers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: