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
Item Group:  Unexpected result Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

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.13-4b48.
Corresponding source code