[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Little problem in OPP



On Fri, 11 Feb 2000, Davide Mora wrote:
> Hi,
> 
> i found a little bug in the OPP utility, if i have an
> interace like this:
> 
> public interface Car {
>   public void something() throws Exception,
> MyException;
> }
> 
> the proxy generated file it's so:
> 
>  ... code ...
>  catch(Exception e) {
>  }
>  catch(MyException e) {
>  }
> 
> this cause a javac error.
This causes an error only if MyException extends Exception. In this case the
above throws clause does not make to much sence too. If the method can throw
Exception, it is implicitely clear that it may also throw MyException. To make
it short: to fix this I would have to sort all possible exceptions by their
dependencies which is a to big effort right now IMO.


Falko
-- 
______________________________________________________________________
Falko Braeutigam                         mailto:falko@softwarebuero.de
softwarebuero m&b (SMB)                    http://www.softwarebuero.de