Details
Description
Minor issue but CancelQueryTask.forgetContext() has this code (in GenericStatementContext.java)
public void forgetContext() {
boolean mayStillRun = !cancel();
if (mayStillRun) {
synchronized (this)
}
}
The mayStillRun = !cancel() is somewhat confusing. I can't see from the javadoc of TimerTask.cancel() how its return value could indicate the task may still run.
Less confusing code could be:
public void forgetContext() {
synchronized (this) { statementContext = null; }
cancel();
}
Attachments
Attachments
Issue Links
- is related to
-
DERBY-1848 jdbcapi/SetQueryTimeoutTest.java fails on IBM wctme 5.7
- Closed