-
Notifications
You must be signed in to change notification settings - Fork 21
Scala annotation yields warning about "no valid targets" #8813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8813?orig=1 |
Leonard Schneider (leonard.schneider) said: |
Tim Feuerbach (tfeuerbach) said: scala> trait A {@BeanProperty var x: Int }
<console>:8: warning: no valid targets for annotation on method x - it is discarded unused. You may specify targets with meta-annotations, e.g. @(scala.beans.BeanProperty @getter)
trait A {@BeanProperty var x: Int } |
Andrei Pozolotin (andrei.pozolotin) said: |
Helena Edelson (helena) said (edited on Feb 13, 2015 3:45:39 PM UTC): {code} Same compiler error if I use these against 2.11.0 - 5: |
Helena Edelson (helena) said (edited on Feb 13, 2015 4:04:31 PM UTC): {code}class CassandraRDD[R] private[connector] (@transient var sc: SparkContext ...){code} |
Currently relevant ticket is: #6375 as to whether to bring back the warning vilified here. |
This seems to work in Scala 2.10.4 but no more in Scala 2.11.x.
The text was updated successfully, but these errors were encountered: