今天在运行编译Cling时,产生的代码出错
并且提示Access restriction

查帮助发现
在preference->java->complier->errors/warning->deprecated and restricted API
把 Forbidden reference 的Error改成warning 即可
本文介绍了在使用Cling编译过程中遇到的Accessrestriction错误及其解决方案。通过调整Eclipse中的设置,将Forbiddenreference的错误级别从Error改为Warning,成功解决了编译问题。
今天在运行编译Cling时,产生的代码出错
并且提示Access restriction

查帮助发现
在preference->java->complier->errors/warning->deprecated and restricted API
把 Forbidden reference 的Error改成warning 即可
176
1万+
1万+

被折叠的 条评论
为什么被折叠?