-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
enhancementfixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
Milestone
Description
Having the @static annotation would fill one feature of the JVM not possible in Scala.
For practicality, it will help in these cases:
-
Some libraries require a static field. In particular, the android SDK requires classes implementing the Parceable interface to have a CREATOR static field
-
It will allow to create utility methods that are available "idiomatically" from Java code
I know that theoretically one can create a compiler plugin to do this. But there are few people that know how to do this.
DmytroMitin
Metadata
Metadata
Assignees
Labels
enhancementfixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)