reckart opened a new pull request, #458:
URL: https://github.com/apache/uima-uimaj/pull/458
**What's in the PR**
- CPMExecutorService: add setContextClassLoader() to capture and apply
control thread's TCCL to worker tasks via per-task wrapping (not hooks)
- CPMExecutorService: wrap Callable and Runnable tasks with set/restore of
TCCL in try/finally to guarantee restore and prevent leaking stale loader to
pooled workers
- CPMExecutorService: override terminated() to drop TCCL field reference on
executor shutdown
- BaseCPMImpl: capture control thread's context class loader in all three
process() entry points and pass to executor before submitting tasks
- Add CpmThreadContextClassLoaderTest with spec test (clean run) and
white-box reuse test (pooled workers with stale TCCL)
**How to test manually**
* See issue description
**Automatic testing**
* [x] PR adds/updates unit tests
**Documentation**
* [ ] PR adds/updates documentation
**Organizational**
- [ ] PR adds/updates dependencies.
<sub><sup>Only dependencies under [approved
licenses](http://www.apache.org/legal/resolved.html#category-a) are allowed.
LICENSE and NOTICE files in the respective modules where dependencies have been
added as well as in the project root have been updated.</sup></sub>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]