Github user punya commented on the pull request: https://github.com/apache/incubator-spark/pull/605#issuecomment-35454254 Unfortunately, a val in an object translates into a zero-argument static method rather than a static final field. There was a plan to add a @static annotation in Scala 2.10 which would have allowed people to create such fields, but that was reverted before release. As a result, we can either keep StorageLevels in Java for now, convert it to Scala now and break API compatibility for existing Java users, or wait until @static arrives in a future Scala version.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. To do so, please top-post your response. 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---