Affects Version/s: 188.8.131.52
Fix Version/s: 184.108.40.206
lucee 220.127.116.11, reproduced on 18.104.22.168-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 Need more details
Pull request #25