bugKawa - Bugs: bug #12416, try-catch doesn't bind exception...

 
 

bug #12416: try-catch doesn't bind exception in handler clause

Submitter:  Steve Yegge <stevey>
Submitted:  Tue 22 Mar 2005 08:55:28 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected result
Status:  Fixed Privacy:  Public
Assigned to:  bothner Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Tue 22 Mar 2005 11:40:24 PM UTC, comment #1: 

This seems to work now.  It may have been fixed as a side-effect of the work I did for #11540.

Per Bothner <bothner>
Group administrator
Tue 22 Mar 2005 08:55:28 AM UTC, original submission:  

(try-catch
 (primitive-throw (make <java.lang.Exception> "hi"))
 (x <java.lang.Exception>
    (display (format "~A~%" (invoke x 'getClass)))
    (force-output)))
class gnu.math.IntNum

The documentation claims that the exception itself is bound to the handler variable, but it appears to be binding something else.  Would be useful to have it bind the exception object so you can use it to print stack traces, re-throw it, etc.

Steve Yegge <stevey>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

History

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-03-22 bothner StatusNone Fixed
    Assigned toNone bothner
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code