I was doing trades in /gamemode c to unlock all the trades my villager had and i ended up with an impossible trade! The trade is 1 book and 65 emeralds for an enchanted book. Yes 65! emeralds! Attached is the screenshot i took to show this really happened!
Fixed in 14w02c (1.8 Snapshot). MC-5506