Might apply to every version.
So I was messing around a bit and discovered that you can switch into spectator while holding right click with a bow or trident, and that it'd fire when you released it. The item loses 1 durability as well, and in the case of a non-infinity bow, an arrow is also consumed.
How to do this:
Step 1: Go into creative
Step 2: Charge a bow or trident
Step 3: Press F3+N while holding right click
Step 4: Release right click
Step 5: Go back into creative if you used a trident
If it helps any, I did this in a multiplayer world.
Duplicate of MC-81773