The Bug:
When the player is 5 blocks from the boat when it is tied to a leash and when it is next to a ledge, then if the player jumps, then it also jumps onto the ledge, but not in the Java edition.
Steps to Reproduce:
Tie the boat on a leash
Мove away to a distance of 5 blocks and jump
And you can see that the boat does not jump if it is near a ledge in the Java edition
Can confirm.