多年来,我构建了几个利用 AspectJ 的 Java Maven 项目。
所有项目都能在 Eclipse Neon 和 Maven 命令行上正确编译。
然而,在 Photon 上,我收到了许多错误消息,所有这些消息都源于无法编译 AspecJ 代码。例如:
pointcut test() : execution(@org.junit.Test * *(..));
原因
pointcut cannot be resolved to a type
和
before() : test() { localLog(thisJoinPoint).info(format("*** Test execution @ %s", describe(thisJoinPointStaticPart)));}
导致错误:
thisJoinPoint cannot be resolved to a variable
和
thisJoinPointStaticPart cannot be resolved to a variable
谁能告诉我如何修复 Photon 上的编译?
相关分类