I randomly stumbled across this when i was walking through my village and a villager closed a door on me causing my player to display the swimming animation. (It does not show this in the video but this also happens with Iron Doors.)
How to recreate:
Close a wooden door.
Related issues
duplicates
Attachments
Comments

[media]

duplicate of MC-147266 which is marked as fixed in a future version

even in flat world, place a door and stand in it when open/close