Why annotations written in Scala are not accessible at runtime?
问题 I have come across a statement in scalatest documentation: It must be defined in Java instead of Scala so it will be accessible at runtime. This is quite weird as I was under the impression that Scala annotation is stronger than its Java counterpart. Why this feature is missing? Is there a plan to add it back? 回答1: There is no known plan to have Scala support annotations retained at runtime (the issue has been known for a while but as this page says, it won't be fixed). Lukas Rytz, a Scala