Setting the priority of a dead thread causes NPE
------------------------------------------------

                 Key: JRUBY-1447
                 URL: http://jira.codehaus.org/browse/JRUBY-1447
             Project: JRuby
          Issue Type: Bug
            Reporter: Evan Weaver
            Assignee: Thomas E Enebo



On MRI:

>> t = Thread.new {}
=> #<Thread:0x14d9fbc dead>
>> t
=> #<Thread:0x14d9fbc dead>
>> t.priority = 10
=> 10
>> 


On JRuby:

irb(main):004:0> t = Thread.new() {}          
=> #<Thread:0x3cf267 run>
irb(main):005:0> t 
=> #<Thread:0x3cf267 dead>
irb(main):006:0> t.priority = 10
Exception in thread "main" java.lang.NullPointerException
        at java.lang.Thread.setPriority(Thread.java:986)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to