Github user HyukjinKwon commented on the issue:
https://github.com/apache/spark/pull/14588
Actually.. I took a look for this as well before. It seems `Annotation` in
Scala 2.10 does not have the `tree` function (see
https://github.com/scala/scala/blob/2.10.x/src/reflect/scala/reflect/api/Annotations.scala#L72-L85)
whereas Scala 2.11 does have
https://github.com/scala/scala/blob/2.11.x/src/reflect/scala/reflect/api/Annotations.scala#L71.
Just to make sure, I tested this in a clean VM as below:
```scala
scala> import scala.reflect.runtime.universe._
import scala.reflect.runtime.universe._
scala> typeTag[String].tpe.typeSymbol.annotations.tree
<console>:14: error: value tree is not a member of
List[reflect.runtime.universe.Annotation]
typeTag[String].tpe.typeSymbol.annotations.tree
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]