猿问

Eclipse Photon 上的 AspectJ 编译器 - 编译问题

多年来,我构建了几个利用 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 上的编译?


白板的微信
浏览 125回答 1
1回答
随时随地看视频慕课网APP

相关分类

Python
我要回答