【发布时间】:2018-07-29 08:49:50
【问题描述】:
多年来,我构建了几个利用 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 上的编译问题?
【问题讨论】: