Compiling errors occur while convert a project to AspectJ project with AspectJ eclipse 3.4 plugin, ajdt2.0.1

五迷三道 提交于 2019-12-08 04:13:06

问题


Hey, I wanna to add AOP to my web project. I download ajdt2.0.1 for eclipse 3.4.1. But when I convert this project to AspectJ projects, I got so many compile errors which shouldn't occur. Such as "XXXDAO cannot be resolved", etc. When I remove AspectJ Capability, everything goes well. Does anyone meet this problems? Thanks in advance.


回答1:


I have solved it by set ajc option with "-encoding UTF-8". That's mysterious, cause the encoding of eclipse is exactly utf-8. Does that mean ajc use my OS default encoding?



来源:https://stackoverflow.com/questions/4363814/compiling-errors-occur-while-convert-a-project-to-aspectj-project-with-aspectj-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!