If you dropped an items on the ground, and then try to attack it with any weapons while looking at it, the items will be destroyed, this wasn’t the case before and does not match Java Edition behavior.
Steps to reproduce:
Give yourself some random items, then drop it on the ground
While looking at the dropped items, give yourself any weapons (or you can also use your fist), and then perform an attack
Observe
Expected results:
Nothing happens, just like in Java Edition.
Observed results:
The items are destroyed.
This is not specific to the spear and affects any item, as well as your bare hands.