RuntimeExceptions and Jobs/Scheduler in Eclipse [message #290916] |
Fri, 02 September 2005 22:07 |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Is there any documentation that specifies what will happen if a runnable
I have created throws a runtime exception? I am learning the hardway
that all sorts of bad behavior results from Eclipse.
For instance I use the IProgressService to run one of my methods like so
IRunnableWithProgress rwp = ...'
IProgressService service = PlatformUI.getWorkbench().getProgressService();
try {
service.busyCursorWhile(rwp);
}
....
The method inside rwp throws a runtime exception, and as a result it
seems like the progress service is halted? So I am asking if anywhere
is documented the behavior of these thread creating methods when a
RuntimeException is thrown from within them?
Thanks!
CL Gilbert
|
|
|
Re: RuntimeExceptions and Jobs/Scheduler in Eclipse [message #291013 is a reply to message #290916] |
Tue, 06 September 2005 12:51 |
Eclipse User |
|
|
|
Originally posted by: Michael_Valenta.oti.com
I think that the progress service should not halt if a runtime excpetion is
thrown in client code. If you are seeing this behavior, you should log a bug
against Platform UI.
Michael
"CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in message
news:dfaien$uh4$1@news.eclipse.org...
> Is there any documentation that specifies what will happen if a runnable I
> have created throws a runtime exception? I am learning the hardway that
> all sorts of bad behavior results from Eclipse.
>
> For instance I use the IProgressService to run one of my methods like so
>
> IRunnableWithProgress rwp = ...'
> IProgressService service = PlatformUI.getWorkbench().getProgressService();
> try {
> service.busyCursorWhile(rwp);
> }
> ...
>
> The method inside rwp throws a runtime exception, and as a result it seems
> like the progress service is halted? So I am asking if anywhere is
> documented the behavior of these thread creating methods when a
> RuntimeException is thrown from within them?
>
>
> Thanks!
>
>
> CL Gilbert
|
|
|
Powered by
FUDForum. Page generated in 0.01839 seconds