By reflux reaction of 3-hydroxy-2-methylpyridin-4-one (maltol) (I) with allylamine (II) solution in water for 3 h.