Create full Exception hierarchy in Java types
---------------------------------------------

                 Key: JRUBY-5284
                 URL: http://jira.codehaus.org/browse/JRUBY-5284
             Project: JRuby
          Issue Type: Bug
            Reporter: Charles Oliver Nutter
            Assignee: Thomas E Enebo
             Fix For: JRuby 1.7


It would be much nicer in JRuby if all of the core Ruby exceptions were 
actually represented as Java exceptions. For example. ConcurrencyError can get 
out to Java code, but it always looks like RaiseException and has to be 
unwrapped. We would probably need the following for this to work:

* Real Java classes for all core exception types (RubyObject hierarchy)
* Real Java exceptions for all core exception types (RaiseException hierarchy)
* A protocol by which the Ruby exception type knows how to construct 
appropriate Java exception type

This last point is important; we should be able to construct the proper type of 
Java exception given only a Ruby exception type, so they stay consistent. The 
two types should largely be indivisible.

I started an attempt at this for 1.6, but it was too much code to introduce a 
week before RC.

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