Thread#priority= resets negative values to 1
--------------------------------------------

                 Key: JRUBY-5290
                 URL: http://jira.codehaus.org/browse/JRUBY-5290
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.6
         Environment: JRuby 1.5.6 on OS X 10.5
            Reporter: Daniel Berger


In MRI you can assign a negative value to Thread#priority= and its value is 
retained. In JRuby negative values are being reset to 1.
{code}
thread = Thread.new{ sleep 1 while true }
thread.priority = -5
p thread.priority # => JRuby returns 1 here ???
thread.exit
{code}

-- 
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