Pickup an item in any gamemode, put them in any slot (1 to 9) and change the gamemode to spectator.
Press Q to throw the item.
I know that spectator mode can't pickup items, but the problem isn't.
The problem is: spectator mode can throw items in pressure plates, for example.
I'll continue my bug searching now. Sorry for my english.
Linked issues
is duplicated by 12
7 more links
Confirmed.