Did Scala case class annotations change in 2.10? -
in scala 2.9 annotate case class using import scala.annotation.target.field
:
case class userauth( @(jsonproperty@field)("email") val email: string, @(jsonproperty@field)("password") val password: string )
in 2.10 go compile class, , need use import scala.annotation.meta.field
it's throwing compiler errors crazy. proper usage of scala case class annotation or can revert simple @jsonproperty("email")
?
looks sort of weird bug in compiler, can confirm syntax @(jsonproperty@field)("email")
using import scala.annotation.meta.field
work.
looks classes weren't loading , simple sbt clean
fixed issue. file bug if problem persists.
Comments
Post a Comment