原因:Eclipse 默认把这些受访问限制的API设成了ERROR。
解决方法:Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning

"Access restriction: The type 'Timestamp' is not API ......"
最新推荐文章于 2024-07-25 11:40:14 发布
本文介绍了解决Eclipse中受限API被标记为错误的方法,通过调整编译器设置,将此类警告级别从ERROR更改为WARNING,从而避免编译失败。
2821

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



