Minecraft wiki entry for Development_versions, associated text: Can now be obtained in Creative mode when an empty bucket is used on water.
If a bucket of water is in the player’s inventory already, no additional water buckets are added when an empty bucket is used on water.
Whether this also applies to lava buckets is unknown.