blob: 73485d3a386b4277d2fb12bd6150f09adf37e183 [file] [log] [blame]
class Test {
void method(){
newMethod();
someOtherCode();
}
private void newMethod() {
try {
process.waitFor();
}
catch(InterruptedException e) {
process.destroy();
}
finally {
try {
myParsingThread.join();
}
catch(InterruptedException e) {
}
compilerHandler.processTerminated();
}
synchronized (this) {
myParsingThread = null;
}
}
}