解决方案1(推荐):
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
解决方案2:
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> 改为warning

相关文章:

  • 2022-01-29
  • 2021-12-19
  • 2021-04-07
  • 2022-01-01
  • 2021-11-29
  • 2021-08-10
  • 2021-04-08
  • 2021-12-06
猜你喜欢
  • 2021-08-14
  • 2022-01-16
相关资源
相似解决方案