出现问题:在eclipse内建立java project , 其中MyHandler.java 中 import org.xml.helper. DefaultHandler , eclipse 提示Error .
问题截图:
解决方法:将eclipse -->windows-->java-->complier-->Errors/Warnings --> Deprecated and restricted API 中的 Forbidden reference(access rules) 讲Error 改成 Warning .
即:eclipe 默认将禁止使用的API 提示为 Error ,改成 Warning 即可。