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

 
 

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

Submitted by:  Steve Yegge <stevey>
Submitted on:  Tue 22 Mar 2005 08:55:28 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Unexpected resultStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 22 Mar 2005 11:40:24 PM UTCbothnerStatusNone=>Fixed
  Assigned toNone=>bothner
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1