You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-user@jakarta.apache.org by John <li...@ajsoft.net> on 2004/10/16 09:36:08 UTC

How to generate e method that has a throws clause

Hi,

I'm generating methods fine with BCEL. I now want to add a throws clause to a 
method. How do i add this ? Any example would be welcome

Thanks
-- 
John

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org


Re: How to generate e method that has a throws clause

Posted by Dick Eimers <dw...@cs.uu.nl>.
> I'm generating methods fine with BCEL. I now want to add a throws clause to a 
> method. How do i add this ? Any example would be welcome

Try MethodGen's addException(String s)


---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org