Affects Version/s: 18.104.22.168
Fix Version/s: 22.214.171.124
lucee 126.96.36.199, reproduced on 188.8.131.52-SNAPSHOT
Use of thread.stop0 will only work on java.lang.Thread directly - fix reflection to use the parent class.
Specific cases of this - reported by @mjhagen on lucee channel on Slack... Related to database errors within a scheduled task. Errors on the console are non-descript, and hide the actual error returned from the code. stop0 isn't able to be executed on a TaskThread, so stop() is the only recourse, which sends ThreadDeath instead of the appropriate exception.
May be related to other tickets, i.e. LDEV-792 Being Investigated/Triaged
Pull request #25