VA 8: Problem with resumable is nil in Exceptional Event

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

VA 8: Problem with resumable is nil in Exceptional Event

Postby Thomas Holzer » Wed Jan 12, 2011 5:27 am

Hi,

In Visual Age 7.5.2 when an error has occured, the instance of the resulting exceptional event has set resumable=false. Visual Age 8.0.2 is having a different behavior: resumable=nil.
Just execute
Code: Select all
Array xxx

And select the ExceptionalEvent row in the stack frame and look at the attribute resumable.

Does this have a particular reason? We are having problems here because our code expects either true or false in resumable attribute. I would appreciate if Visual Age 8.0.2 behaves the same like 7.5.2.

Regards Thomas
Thomas Holzer
 
Posts: 16
Joined: Fri Nov 21, 2008 2:14 am

Re: VA 8: Problem with resumable is nil in Exceptional Event

Postby wembley » Wed Jan 12, 2011 5:47 am

Thomas -

Case 48051 opened.

This is only occurring for class-based exceptions with no pre-existing instance-based analog (such as MessageNotUnderstood). Here is the fix:
Code: Select all
Exception class>>newExceptionalEvent
   "Create a new ExceptionalEvent for the Exception subclass.  This method is invoked
    when there is not an already-existing instance-based exception for the Exception
    subclass."

   ^self superclass exceptionalEvent newChild
      markReadOnly: false;
      description: self defaultDescription;
      defaultHandler: [ :signal | signal defaultAction ];
      markReadOnly: true;
      yourself

You will need to execute Exception reset after changing the method in order to clear out the existing instances of ExceptionalEvent.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: VA 8: Problem with resumable is nil in Exceptional Event

Postby Thomas Holzer » Thu Jan 13, 2011 9:24 am

Hi John,

Thank you for the quick response!
Yes that fix works for us. Will this fix go also the next VA 8.0.3 version?

Regards Thomas
Thomas Holzer
 
Posts: 16
Joined: Fri Nov 21, 2008 2:14 am

Re: VA 8: Problem with resumable is nil in Exceptional Event

Postby wembley » Thu Jan 13, 2011 10:03 am

Thomas -

Yes, I've released it into this week's build.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron