Roger Pack created JRUBY-6275:
---------------------------------
Summary: double locking a mutex could use a better error message,
line number
Key: JRUBY-6275
URL: https://jira.codehaus.org/browse/JRUBY-6275
Project: JRuby
Issue Type: Improvement
Environment: jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java
HotSpot(TM) Client VM 1.6.0_26) [Windows XP-x86-java]
Reporter: Roger Pack
Assignee: Thomas E Enebo
Currently if you attempt to double lock a mutex, it responds with
"ThreadError: Mutex is not locked"
but in reality the problem is that the mutex *is* locked (I think this may be
actually a secondary error, obscuring the real error, because it is also
reporting the wrong line number, it appears, compared to MRI).
{{{
require 'thread'
a = Mutex.new
a.synchronize {
a.synchronize { # this line raises
}
}
}}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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