TRASHCLASS compile errors when overriding custom events

I would also like to see this fixed in 4.10.1. It also causes my packaging to fail.