Type of catched Java exceptions doesn't match what you would expect.
--------------------------------------------------------------------

                 Key: JRUBY-2059
                 URL: http://jira.codehaus.org/browse/JRUBY-2059
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1RC1, JRuby 1.1b1, JRuby 1.0.3
            Reporter: Ola Bini
            Priority: Minor


This code fails, contrary to the obvious interpretation:

{noformat}
begin
  java.util.HashMap.new.entrySet.iterator.next
rescue java.util.NoSuchElementException => e
  assert_equal java.util.NoSuchElementException, e.class
end
{noformat}

Instead, the type of the exception is NativeException. Not very nice.

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