Access restriction: The method 'CharacterEncoder.encode(byte[])' is not API...
Posted jin1000x
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Access restriction: The method 'CharacterEncoder.encode(byte[])' is not API...相关的知识,希望对你有一定的参考价值。
问题描述:Access restriction: The method ‘CharacterEncoder.encode(byte[])‘ is not API...
解决方法:这种错误是eclipse设置问题,修改eclipse的设置即可:点击Windows --> Preferences --> Java --> Complicer --> Errors/Warnings
--> Deprecated and restricted API中的Forbidden references(access rules)选为Warning即可编译通过。
以上是关于Access restriction: The method 'CharacterEncoder.encode(byte[])' is not API...的主要内容,如果未能解决你的问题,请参考以下文章
Access restriction: The type QName is not accessible due to restriction on required library
Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on require
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required libra
关于Access restriction: The type 'Application' is not API (restriction on required library)(示例
Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:Pr(