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

Popular posts from this blog

Pull out data related to my apps from Android Play Store and iOS App Store -

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -