I like this idea.

----- Original Message ----- 
From: "Ernst de Haan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 25, 2000 3:12 PM
Subject: Re: How to tell what Javac did?


> Aaron Knauf wrote:
> > Perhaps we could extend Task to set an exit status property? 
> > Probably, this would mean changing
> > 
> > public void execute()
> > 
> > to
> > 
> > public int execute()
> > 
> > and changing all the subclasses.  Better to get that done now, rather
> > than wait until the number of tasks is too large.
> 
> If you would choose this option, then I suggest you change the return
> type to be some class or interface, not just an int, for extensibility.
> You may find it useful to return a descriptive error message, or perhaps
> warning messages.
> 
> For now the return type could be as simple as:
> 
>    public interface ExecutionResult {
>       int getStatus();
>    }
> 
> 
> Ernst
> 

Reply via email to