当前位置: 代码迷 >> 综合 >> Access restriction: The type IOException is not accessible due to restriction on
  详细解决方案

Access restriction: The type IOException is not accessible due to restriction on

热度:26   发布时间:2024-01-21 14:19:53.0

解决方法:

Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings
里面的Deprecated and restricted API
中的Forbidden references(access rules)选为Warning就可以编译通过。
  相关解决方案