Bukkit/CraftBukkit — comment on commit 85328d142ba899b9c354199f5e4c75d95a499e1f
File: src/main/java/net/minecraft/server/ItemStack.java line 47
By Zeerix:

This will raise an exception for ItemStacks that are stackable; see setTag method.