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

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -