加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

什么是“反射式访问结构型成员方法应该启用…”警告意味着在Scal

发布时间:2020-12-16 09:31:52 所属栏目:安全 来源:网络整理
导读:切换到Scala 2.10后,我得到了许多警告: reflective access of structural type member method … should be enabled by making the implicit value language.reflectiveCalls visible 这是什么意思? 解决方法 该警告实际上告诉您在文档中查找说明: Test.
切换到Scala 2.10后,我得到了许多警告:

reflective access of structural type member method … should be enabled by making the implicit value language.reflectiveCalls visible

这是什么意思?

解决方法

该警告实际上告诉您在文档中查找说明:

Test.scala:9: warning: reflective access of structural type member method y should be enabled
by making the implicit value language.reflectiveCalls visible.
This can be achieved by adding the import clause 'import scala.language.reflectiveCalls'
or by setting the compiler option -language:reflectiveCalls.
See the Scala docs for value scala.language.reflectiveCalls for a discussion
why the feature should be explicitly enabled.

Referenced Scaladoc entry(请务必点击左侧的|>箭头展开文档条目)。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读