0 Replies Latest reply on Feb 1, 2010 1:44 AM by megalodon

    lacking adequate features - addcatch, insertAfter(...,true);

      Hello All,

       

      As far as my understanding goes, the 'catch'  and 'finally' clauses are there to clean up and close internally allocated resources. To do that, one needs, among other things, unrestricted access to local variables in order to flush/close streams etc.,. In this case, why do the addCatch() and insertAfter(...,true) functions not allow access to any local variables including the ones created using Javassist? What can I do with just the $e variable?

       

      If I am not mistaken, BCEL, does not place any such restriction with respect to local variable access unlike Javassist.

       

      Please guide me with comments/suggestions/alternatives etc....Thanking you in advance.

       

      -Arvind