问题
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