Affects Version/s: 220.127.116.11
Fix Version/s: 18.104.22.168
lucee 22.214.171.124, reproduced on 126.96.36.199-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 Rejected
Pull request #25