[Swift-devel] Re: IllegalThreadStateException

Ioan Raicu iraicu at cs.uchicago.edu
Wed Sep 5 17:07:42 CDT 2007


Hi,
Yes, this exception is deliberate (in debug mode, I print everything!), 
but perhaps I shouldn't be printing it as an exception, but as a normal 
event that happens...

Ioan

Ben Clifford wrote:
> On Mon, 3 Sep 2007, Mihael Hategan wrote:
>
>   
>> On Mon, 2007-09-03 at 11:35 +0000, Ben Clifford wrote:
>>     
>>> slightly scarily, the source code looks like that's deliberate?
>>>       
>> Yes. Java has no other way of telling whether a process is done or still
>> running, unless you create another thread and use Process.waitFor. See
>> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Process.html#exitValue()
>>     
>
> That's happening anyway, in ChildListener which is in WorkerRun.java.
>
>   

-- 
============================================
Ioan Raicu
Ph.D. Student
============================================
Distributed Systems Laboratory
Computer Science Department
University of Chicago
1100 E. 58th Street, Ryerson Hall
Chicago, IL 60637
============================================
Email: iraicu at cs.uchicago.edu
Web:   http://www.cs.uchicago.edu/~iraicu
       http://dsl.cs.uchicago.edu/
============================================
============================================




More information about the Swift-devel mailing list