You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bumped into this with ScalaTest, the pattern seams to be used for all of their annotations. Quoting their scaladoc/javadoc:
Note: This is actually an annotation defined in Java, not a Scala trait. It must be defined in Java instead of Scala so it will be accessible at runtime
Here is a minimized two file test case:
TagAnnotation.java:
public @interface TagAnnotation {
publicStringvalue();
}
Access.scala:
objectTest {
valv:TagAnnotation=null
println(v.value) // error: value value in class TagAnnotation cannot be accessed as a// member of TagAnnotation(Test.v) from module class Test$.
}